summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-30 16:11:24 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-30 16:11:24 +0200
commitf8517d6f02bdd312995769e0f5aafcfc010ef122 (patch)
treee54ab557bcfd41c06ecf27b555de0c5b2bf31fda /bin/reproducible_build.sh
parent6aee9c8aed68d5565b3ff723bdbb7ef5e2cce4e4 (diff)
downloadjenkins.debian.net-f8517d6f02bdd312995769e0f5aafcfc010ef122.tar.xz
reproducible: refactor
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh5
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