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

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -