summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-18 18:05:11 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-18 18:05:11 +0200
commit04fbc6b8df44eab6762af38b5976f55acdfd2039 (patch)
treec57fa8823d48fbed3c41969cfe749bac28f5965c /bin/reproducible_common.sh
parent87ea4ff1ddf0d8333f65b2a193f2aac058e2ca24 (diff)
downloadjenkins.debian.net-04fbc6b8df44eab6762af38b5976f55acdfd2039.tar.xz
reproducible arch: randomize start times
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-xbin/reproducible_common.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index c61be6e4..84ff0e83 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -112,6 +112,11 @@ META_PKGSET[28]="maint_debian-ocaml"
META_PKGSET[29]="maint_debian-x"
META_PKGSET[30]="maint_lua"
+# sleep 1-23 secs to randomize start times
+delay_start() {
+ /bin/sleep $(echo "scale=1 ; $(shuf -i 1-230 -n 1)/10" | bc )
+}
+
schedule_packages() {
LC_USER="$REQUESTER" \
LOCAL_CALL="true" \