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 Fri, Jul 7, 2017 at 10:46 PM <[email protected]> wrote:

>
> <https://lh3.googleusercontent.com/-Qy3ss1ak8F8/WV_knFTK0II/AAAAAAAAAG4/Jt1c85sSNqsF3FL8l4AXWzWrmm5ylHUqACLcBGAs/s1600/hangTimeout.PNG>
> HI,
> is the timeout can be used to prevent the warnings publisher and bat hang
> even possible?
>
> 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']]])
> }
> }
>
>
> and it have hang for over 3 hours now :-(
> I was hoping to at least be able to stop those nasty hanging build and
> make them failed but doesn't seem to work. maybe I'm using timeout wrongly
> or the default units is not min like the doc and example said???
>
>
> <https://lh3.googleusercontent.com/-Qy3ss1ak8F8/WV_knFTK0II/AAAAAAAAAG4/Jt1c85sSNqsF3FL8l4AXWzWrmm5ylHUqACLcBGAs/s1600/hangTimeout.PNG>
>
>
>
> --
> 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/8e24ad7b-cb94-4505-8819-e1592c4f2b49%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/8e24ad7b-cb94-4505-8819-e1592c4f2b49%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAObRFCV%2BqvxaB-XDGA6n_HmyFzxz%3DBkg34OxOFp19c4nrO_A_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to