diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-08-30 16:11:24 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-30 16:11:24 +0200 |
commit | f8517d6f02bdd312995769e0f5aafcfc010ef122 (patch) | |
tree | e54ab557bcfd41c06ecf27b555de0c5b2bf31fda | |
parent | 6aee9c8aed68d5565b3ff723bdbb7ef5e2cce4e4 (diff) | |
download | jenkins.debian.net-f8517d6f02bdd312995769e0f5aafcfc010ef122.tar.xz |
reproducible: refactor
-rwxr-xr-x | bin/reproducible_build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 9fb5e434..10a4bc5e 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -17,7 +17,9 @@ set -e ARCH="amd64" # sleep 1-12 secs to randomize start times -/bin/sleep $(echo "scale=1 ; $(shuf -i 1-120 -n 1)/10" | bc ) +delay_start() { + /bin/sleep $(echo "scale=1 ; $(shuf -i 1-120 -n 1)/10" | bc ) +} create_results_dirs() { mkdir -vp $BASE/dbd/${SUITE}/${ARCH} @@ -363,6 +365,7 @@ choose_package () { } init() { + delay_start if [ $SAVE_ARTIFACTS -eq 1 ] ; then local ANNOUNCE="Artifacts will be preserved." fi |