[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible Debian: refactor, decrease initial sleep of build_service…

Holger Levsen holger at layer-acht.org
Wed Apr 19 12:20:16 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 378733d7804f69b2d57c8cb09da83927679739b8
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Apr 19 14:20:08 2017 +0200

    reproducible Debian: refactor, decrease initial sleep of build_service…
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_build_service.sh | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh
index 4c88566..3d593d7 100755
--- a/bin/reproducible_build_service.sh
+++ b/bin/reproducible_build_service.sh
@@ -5,6 +5,10 @@
 
 # normally defined by jenkins
 JENKINS_URL=https://jenkins.debian.net
+set -e
+set -x
+# sleep up to 2.3 seconds (additionally to the random sleep reproducible_build.sh does anyway)
+/bin/sleep $(echo "scale=1 ; $(shuf -i 1-23 -n 1)/10" | bc )
 
 DEBUG=false
 . /srv/jenkins/bin/common-functions.sh
@@ -13,11 +17,6 @@ common_init "$@"
 # common code defining db access
 . /srv/jenkins/bin/reproducible_common.sh
 
-set -e
-set -x
-# sleep 1-23 secs to randomize start times
-/bin/sleep $(echo "scale=1 ; $(shuf -i 1-230 -n 1)/10" | bc )
-
 BUILD_BASE=/var/lib/jenkins/userContent/reproducible/debian/build_service/$1
 OLD_ID=$(ls -1rt $BUILD_BASE|grep -v latest|sort -n|tail -1)
 let BUILD_ID=OLD_ID+1

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