Either get return code from the executing shell script or surround with
try-catch
final def returnCode = sh returnStatus: true, script: ""
if (returnCode != 0) {
}
try {
sh ""
} catch (e) {
}
tirsdag 13. september 2016 04.10.57 UTC+2 skrev R Tyler Croy følgende:
>
> (replies inline)
>
>
(replies inline)
On Mon, 12 Sep 2016, Klaus Rudolph wrote:
> Hi all,
>
> if I use gtest in pipeline setup and have a unit test which fails the groovy
> script stops.
>
> How can I tell the script that I want to continue so that I am able to see
> the results from xunit/gtest plugin?
>
> From
Hi all,
if I use gtest in pipeline setup and have a unit test which fails the groovy
script stops.
How can I tell the script that I want to continue so that I am able to see the
results from xunit/gtest plugin?
>From the gui without running Jenkinsfile there I had to write "set +e" in the
>di