[Qa-jenkins-scm] [jenkins.debian.net] 01/04: reproducible debian: _build.sh: don't exec abort.sh anymore

Holger Levsen holger at layer-acht.org
Sat Sep 9 12:26:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit ab0508b05f65b0e254e1e9b669c11566e29ff830
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Fri Sep 8 10:47:31 2017 +0200

    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 <mattia at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_build.sh | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 07483e2..96e876e 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # Copyright 2014-2017 Holger Levsen <holger at layer-acht.org>
-#         © 2015-2016 Mattia Rizzolo <mattia at mapreri.org>
+#         © 2015-2017 Mattia Rizzolo <mattia at mapreri.org>
 # 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 at 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
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list