stage('Build'){ timeout(60) { bat returnStatus: false, script: "\"${bcad.msbuild_current}\" ${bcad.msbuild_solution_name} ${bcad.msbuild_default_arg} /t:Build" step([$class: 'WarningsPublisher', canRunOnFailed: true, consoleParsers: [[parserName: 'MSBuild']]]) }}
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8e24ad7b-cb94-4505-8819-e1592c4f2b49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
timeout(45) { // some block}
timeout(time: 45, unit: 'SECONDS') { // some block}
timeout(time: 45, unit: 'MINUTES') { // some block}
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 is offline
Waiting to resume part of Bodycad cpp projects » CAD_CPP_ContinuousBuild #172: 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
timeout(5) {
node("docker") {
sh"""
//do something
"""
}
}
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