From ab0508b05f65b0e254e1e9b669c11566e29ff830 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 8 Sep 2017 10:47:31 +0200 Subject: reproducible debian: _build.sh: don't exec abort.sh anymore the job is not run by jenkins anymore, so no point in calling abort.sh, futhremore `exec`ing doesn't run the cleanup part in some cases, causing stale temporary directories to be left behind. Signed-off-by: Mattia Rizzolo Signed-off-by: Holger Levsen --- bin/reproducible_build.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 07483e28..96e876e5 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 2014-2017 Holger Levsen -# © 2015-2016 Mattia Rizzolo +# © 2015-2017 Mattia Rizzolo # released under the GPLv=2 DEBUG=false @@ -69,7 +69,6 @@ handle_race_condition() { # cleanup cd rm -r $TMPDIR || true - exec /srv/jenkins/bin/abort.sh exit 0 } @@ -333,7 +332,6 @@ handle_env_changes() { MESSAGE="$(date -u ) - ${BUILD_URL}console.log encountered a problem: $1" echo -e "$MESSAGE" | tee -a /var/log/jenkins/reproducible-env-changes.log # no need to slow down - exec /srv/jenkins/bin/abort.sh exit 0 } @@ -343,7 +341,6 @@ handle_remote_error() { echo "$(date -u ) - $MESSAGE" | tee -a /var/log/jenkins/reproducible-remote-error.log echo "Sleeping 5m before aborting the job." sleep 5m - exec /srv/jenkins/bin/abort.sh exit 0 } @@ -354,7 +351,6 @@ handle_enospace() { echo "$MESSAGE" | mail -s "$JOB on $1 ran into diskspace problems" qa-jenkins-scm@lists.alioth.debian.org echo "Sleeping 60m before aborting the job." sleep 60m - exec /srv/jenkins/bin/abort.sh exit 0 } @@ -736,7 +732,6 @@ check_node_is_up() { echo "$(date -u) - $NODE seems to be down, sleeping ${SLEEPTIME}min before aborting this job." unregister_build sleep ${SLEEPTIME}.1337m - exec /srv/jenkins/bin/abort.sh fi set -e } -- cgit v1.2.3-70-g09d2