How to add a timeout step to Jenkins Pipeline -


when using free style project can set after 20 minutes build aborted if not concluded. how possible jenkins multi branch pipeline project?

you can use timeout step:

timeout(20) {   node {     sh 'foo'   } } 

if need different timeunit minutes, can supply unit argument:

timeout(time: 20, unit: 'seconds') { 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -