[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: actually kill the build if run into timeout

Holger Levsen holger at moszumanska.debian.org
Sun May 24 08:52:58 UTC 2015


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 0d081e0df2da0de021ee297a3f5fc63303bb0b55
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun May 24 10:52:33 2015 +0200

    reproducible: actually kill the build if run into timeout
---
 bin/reproducible_build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index c9cb1e2..216ce1e 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -392,7 +392,7 @@ build_rebuild() {
 	mkdir b1 b2
 	set -x
 	printf "BUILDUSERID=1111\nBUILDUSERNAME=pbuilder1\n" > $TMPCFG
-	( timeout 12h nice ionice -c 3 sudo \
+	( timeout -k 12h 12h nice ionice -c 3 sudo \
 	  DEB_BUILD_OPTIONS="parallel=$NUM_CPU" \
 	  TZ="/usr/share/zoneinfo/Etc/GMT+12" \
 	  pbuilder --build \
@@ -411,7 +411,7 @@ build_rebuild() {
 		echo "============================================================================="
 		set -x
 		printf "BUILDUSERID=2222\nBUILDUSERNAME=pbuilder2\n" > $TMPCFG
-		( timeout 12h nice ionice -c 3 sudo \
+		( timeout -k 12h 12h nice ionice -c 3 sudo \
 		  DEB_BUILD_OPTIONS="parallel=$(echo $NUM_CPU-1|bc)" \
 		  TZ="/usr/share/zoneinfo/Etc/GMT-14" \
 		  LANG="fr_CH.UTF-8" \

-- 
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