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
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
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
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,
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
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
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