Thanks for your answer.
From: [email protected]
[mailto:[email protected]] On Behalf Of [email protected]
Sent: 19 October 2017 15:36
To: Jenkins Users <[email protected]>
Subject: Re: Declarative script: 'bat' command fails but job succeeds
Not sure about declarative pipeline (I haven't played with them yet). but for
normal pipeline I use it this way:
bat returnStatus: false, script: "\"${bcad.msbuild_current}\"
${bcad.msbuild_solution_name} ${bcad.msbuild_default_arg} /t:Build"
You can find the doc here:
https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#bat-windows-batch-script
returnStatus can be check or not if you want, if you don't want to end the
script for warnings like my above example. You can then use msbuild parser for
example
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
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/0e30d94d-ccfc-4b72-b8a8-a7280ee99ce5%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/0e30d94d-ccfc-4b72-b8a8-a7280ee99ce5%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
Click
here<https://www.mailcontrol.com/sr/Nq88hfq4QFrGX2PQPOmvUiOFufhVdryL!w9pVUTemXJrgzmUvReValbza45QkcfmBzPeXKV5M07IiTKH8SslWQ==>
to report this email as spam.
--
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/b24f8f98fef84fdeb8f879b5f8d33ac7%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.