When trying the 45 minutes units into the syntax helper (pipeline-syntax/ of the project) it display the following code: timeout(45) { // some block }
If I change the unit the syntax change like follow: timeout(time: 45, unit: 'SECONDS') { // some block } So I will try with the following too see if it change something: timeout(time: 45, unit: 'MINUTES') { // some block } The document seem to specify the timeout goes into the options block when using declarative pipeline (which I don't), but for normal pipeline I guess the* //some block* above is for any code block or is a block a specific type (stage, node...) ? This is unclear. If this is any code block, it doesn't seem to work with either bat or steps warning publisher, which I cannot interrupt by cancelling the build into the GUI, so I guess the timeout may not cancel them either. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1ff554c4-b80e-4224-85cd-10f5da6e1d16%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.