groovy - Setting up timeout in buildflow jobs jenkins -


i'm trying set timeout jenkins job build flow type , cannot figure out how to. found piece of code

job('myjob') {   wrappers{             timeout{                   noactivity(180)                   failbuild()             }           } } 

but not know how include in job. please help. thank you.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -