Good explanation here.

http://thingsyoudidntknowaboutjenkins.tumblr.com/post/30255425955/why-does-jenkins-think-my-build-succeeded



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Dirk Heinrichs
Sent: Wednesday, July 24, 2013 5:50 AM
To: [email protected]
Subject: Re: Avoid script shell build failure

Am Mittwoch, 24. Juli 2013, 11:25:10 schrieb Adrien Ruffié:

> Do you have an idea, how I can avoid this failure and continu other build
> step and enter into else statement ?

It's because the script is started with -xe. -e lets the script fail as soon 
as any command exits with non-zero return code. Try adding "set +e" at the top 
of your script.

HTH...

        Dirk


http://www.recommind.com

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.



-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to