RE: Avoid script shell build failure

2013-07-25 Thread Adrien Ruffié
script shell build failure On Wednesday, July 24, 2013 12:53:09 PM UTC-4, JonathanRRogers wrote: On Wednesday, July 24, 2013 5:49:46 AM UTC-4, Dirk Heinrichs wrote: 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

Avoid script shell build failure

2013-07-24 Thread Adrien Ruffié
Hello all, Into one job I have the following script shell build step : git status /tmp/git.status grep webapp/res/description.xml /tmp/git.status /dev/null returncode=$? if [ $returncode -eq 0 ]; then git add -- webapp/res/description.xml git commit --verbose -F

Re: Avoid script shell build failure

2013-07-24 Thread Dirk Heinrichs
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

RE: Avoid script shell build failure

2013-07-24 Thread Stanley, Jason
, 2013 5:50 AM To: jenkinsci-users@googlegroups.com 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

Re: Avoid script shell build failure

2013-07-24 Thread JonathanRRogers
On Wednesday, July 24, 2013 5:49:46 AM UTC-4, Dirk Heinrichs wrote: 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.

Re: Avoid script shell build failure

2013-07-24 Thread JonathanRRogers
On Wednesday, July 24, 2013 12:53:09 PM UTC-4, JonathanRRogers wrote: On Wednesday, July 24, 2013 5:49:46 AM UTC-4, Dirk Heinrichs wrote: 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