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 12, 2017 at 7:55:33 AM UTC-7, jer...@bodycad.com wrote:
>
> 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 of Bodycad cpp projects » CAD_CPP_ContinuousBuild 
> #172: JGMachine <http://bcadlx03/Jenkins/computer/JGMachine/> is offline
> Waiting to resume part of Bodycad cpp projects » CAD_CPP_ContinuousBuild 
> #172: JGMachine <http://bcadlx03/Jenkins/computer/JGMachine/> is offline
> Ready to run at Wed Jul 12 10:50:34 EDT 2017
> *10:50:34* Timeout expired 5 hr 46 min ago
> *10:50:34* Cancelling nested steps due to timeout
> [Pipeline] }
> [Pipeline] // timeout
> [Pipeline] }
> [Pipeline] // stage
> [Pipeline] }
> [Pipeline] // timestamps
> [Pipeline] echo
> Error occurred during build:
> [Pipeline] echo
> java.lang.Exception: Resume after a restart not supported for non-blocking 
> synchronous steps
>
>
> the line: 
> *10:50:34* Timeout expired 5 hr 46 min ago
> tell me that it cannot be used that way.
>

-- 
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/e67e9e53-7e45-4426-83d1-fa062ef15d19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to