diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2015-12-31 13:19:49 +0100 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2016-01-05 13:10:06 +0000 |
commit | b5cd4141ff4954850abc9c67d0a8ae11abf9c838 (patch) | |
tree | f119495d33905991d2e819f6eeed4b6d5e1ea919 /tcwg-buildfarm-master-hetzner.yaml | |
parent | 3505beaa721c1b3068e9d6f8a5169dd45b064c97 (diff) |
tcwg-buildfarm-*: Fix result status handling.
Current implementation with 'cmd | true' followed by '$PIPESTATUS' usage is
wrong as true finishes its execution while cmd still runs, and we get a
SIGPIPE error. Use 'cat' instead of 'true'.
Change-Id: I72e348046af34696b1c3f8927ffe3f95d6b2c003
Diffstat (limited to 'tcwg-buildfarm-master-hetzner.yaml')
-rw-r--r-- | tcwg-buildfarm-master-hetzner.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcwg-buildfarm-master-hetzner.yaml b/tcwg-buildfarm-master-hetzner.yaml index be985b2425..8534f562b6 100644 --- a/tcwg-buildfarm-master-hetzner.yaml +++ b/tcwg-buildfarm-master-hetzner.yaml @@ -167,7 +167,7 @@ # Workaround by retrying. trap "{ schroot -f -e -c session:$session_id || { sleep 60 ; schroot -f -e -c session:$session_id } }; exit \$result" 0 1 2 3 5 9 13 15 - ${BUILD_SHELL} -x ./jenkins.sh --target ${target} --gcc-branch ${gcc_branch} --languages ${languages} $bootstrap $runtests_opt --excludecheck ${excludecheck} --fileserver ex40-01.tcwglab.linaro.org/snapshots-ref --logserver $log_server $logname_opt $norebuild | true + ${BUILD_SHELL} -x ./jenkins.sh --target ${target} --gcc-branch ${gcc_branch} --languages ${languages} $bootstrap $runtests_opt --excludecheck ${excludecheck} --fileserver ex40-01.tcwglab.linaro.org/snapshots-ref --logserver $log_server $logname_opt $norebuild | cat result="${PIPESTATUS[0]}" echo "Result of jenkins.sh: $result" |