Hi Kevin,

I have used “timeout” step in the past and as far as I can remember it worked 
as expected.

Note, however, that I may not have put the “node(…)” step inside the “timeout” 
step; not sure if that is of any relevance though…

HTH Reinhold


From: [email protected] <[email protected]> On 
Behalf Of Kevin Chow
Sent: Mittwoch, 10. April 2019 20:17
To: Jenkins Users <[email protected]>
Subject: Re: Is pipeline timeout suppose to work?

Hi Jer,

I'd like to followup if you figured out how to do timeout with Jenkins Scripted 
Pipeline. I'm looking into a solution to resolve it.

I have something like but it doesn't work out for me.

timeout(5) {
node("docker") {
sh"""
//do something
"""
}
}


Thanks,

Kevin

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/VI1P190MB0111135763094F6CAA424C57F72F0%40VI1P190MB0111.EURP190.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to