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

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -