RE: Is pipeline timeout suppose to work?

2019-04-11 Thread Reinhold Füreder
On Behalf Of Kevin Chow Sent: Mittwoch, 10. April 2019 20:17 To: Jenkins Users 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

Re: Is pipeline timeout suppose to work?

2019-04-10 Thread Kevin Chow
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 On Wednesday, July

Re: Is pipeline timeout suppose to work?

2017-07-12 Thread jerome
I think I got my answer about it into the console log after a hang, I had to restart the jenkins service and got this as a result: *04:18:53* *04:18:53* Build succeeded. *04:18:53* 0 Warning(s) *04:18:53* 0 Error(s) *04:18:53* *04:18:53* Time Elapsed 00:14:25.77 Waiting to resume part

Re: Is pipeline timeout suppose to work?

2017-07-11 Thread jerome
This is Declarative pipeline syntax (which I don't use), for non Declarative pipeline (which is what I have), I wonder if this work the same or where it can be used? On Tuesday, July 11, 2017 at 5:31:08 AM UTC-4, Jakub Pawlinski wrote: > > I use this on pipeline level and it works fine there,

Re: Is pipeline timeout suppose to work?

2017-07-11 Thread Jakub Pawlinski
I use this on pipeline level and it works fine there, haven't tried on stage level tho. pipeline { options { timeout(time: 12, unit: 'HOURS') timestamps() } ... } -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group

Re: Is pipeline timeout suppose to work?

2017-07-10 Thread jerome
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

Re: Is pipeline timeout suppose to work?

2017-07-07 Thread Danny Rehelis
It is definitely working, your syntax maybe a bit off. Have a look here: https://jenkins.io/doc/book/pipeline/syntax/ and here: https://support.cloudbees.com/hc/en-us/articles/226554067-Pipeline-How-to-add-an-input-step-with-timeout-that-continues-if-timeout-is-reached-using-a-default-value On