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
Post a Comment