[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: later manual scheduling is earlier in the queue now

Holger Levsen holger at moszumanska.debian.org
Fri Mar 20 21:22:31 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 78527f4218e1adcf6751ed5894d3dad0c18c7b1f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Mar 20 22:22:21 2015 +0100

    reproducible: later manual scheduling is earlier in the queue now
---
 bin/reproducible_common.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 7f318e1..0737c72 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -77,7 +77,11 @@ META_PKGSET[14]="maint_pkg-perl-maintainers"
 schedule_packages() {
 	# these packages are manually scheduled, so should have high priority,
 	# so schedule them in the past, so they are picked earlier :)
-	DATE="2014-10-01 00:23"
+	# the current date is subtracted twice, so that later manual scheduling comes first
+	DAYS=$(echo "$(date +'%j')*2"|bc)
+	HOURS=$(echo "$(date +'%H')*2"|bc)
+	MINS=$(echo "$(date +'%M')*2"|bc)
+	DATE=$(date +'%Y-%m-%d %H:%M' -d "$DAYS day ago - $HOURS hours - $MINS minutes")
 	TMPFILE=$(mktemp)
 	ARTIFACTS=$1
 	shift

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