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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -