diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-16 10:52:38 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-16 10:52:38 +0200 |
commit | cf25c53644c7d88eca1d183c295863ec438937e4 (patch) | |
tree | 6e0324ff8fffc0cd86fd5e8155e327b50906e4e3 /bin/reproducible_build.sh | |
parent | efe1358e0212cc1dfc8ba7f0f4e48d3e2c675257 (diff) | |
download | jenkins.debian.net-cf25c53644c7d88eca1d183c295863ec438937e4.tar.xz |
use exec to start abort.sh to invoke it from within the current job run
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index da3a9f4b..d6c4578e 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -273,7 +273,7 @@ handle_unhandled() { else sleep $2 fi - /srv/jenkins/bin/abort.sh + exec /srv/jenkins/bin/abort.sh exit 0 } @@ -541,7 +541,7 @@ remote_build() { if [ $RESULT -ne 0 ] ; then echo "$(date -u) - $NODE seems to be down, sleeping 23min before aborting this job." sleep 23m - /srv/jenkins/bin/abort.sh + exec /srv/jenkins/bin/abort.sh fi ssh -p $PORT $NODE /srv/jenkins/bin/reproducible_build.sh $BUILDNR ${SRCPACKAGE} ${SUITE} ${TMPDIR} RESULT=$? |