[Qa-jenkins-scm] [jenkins.debian.net] 06/06: reproducible: schedule_on_demand: rewrite it to just be a wrapper around reproducible_remote_scheduler.py

Holger Levsen holger at moszumanska.debian.org
Sun Jun 14 20:37:02 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 bf3f5366dd463cdcc8b4ccd50e434e7195bba742
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sun Jun 14 20:14:07 2015 +0200

    reproducible: schedule_on_demand: rewrite it to just be a wrapper around reproducible_remote_scheduler.py
---
 bin/reproducible_schedule_on_demand.sh | 39 +++++-----------------------------
 1 file changed, 5 insertions(+), 34 deletions(-)

diff --git a/bin/reproducible_schedule_on_demand.sh b/bin/reproducible_schedule_on_demand.sh
index f7e3af3..7b51949 100755
--- a/bin/reproducible_schedule_on_demand.sh
+++ b/bin/reproducible_schedule_on_demand.sh
@@ -4,45 +4,16 @@
 #         © 2015 Mattia Rizzolo <mattia at mapreri.org>
 # released under the GPLv=2
 
-DEBUG=false
-. /srv/jenkins/bin/common-functions.sh
-common_init "$@"
-
-# common code defining db access
-. /srv/jenkins/bin/reproducible_common.sh
-
-set +x
-ARTIFACTS=0
-NOTIFY=''
-if [ "$1" = "--notify" ] ; then
-	NOTIFY=true
-	shift
-elif [ "$1" = "--artifacts" ] ; then
-	ARTIFACTS=1
-	NOTIFY=true
-fi
-SUITE="$1"
-shift
-if [ "$SUITE" = "sid" ] ; then
-	echo "WARNING: sid has been renamed to unstable."
-	SUITE=unstable
-fi
+set -e
 
 if [ ! -z "$SUDO_USER" ] ; then
 	REQUESTER="$SUDO_USER"
 else
 	echo "Looks like you logged into this host as the jenkins user without sudoing to it. How can that be possible?!?!"
-	REQUESTER="$USER"
-fi
-
-CANDIDATES="$@"
-if [ ${#} -gt 50 ] && [ "$NOTIFY" = "true" ] ; then
-	echo
-	figlet "No."
-	echo "Do not schedule more than 50 packages with notification. If you really really need to spam the IRC channel this much, use a loop to achieve that. Exiting."
-	echo
+	echo "You're doing something too weird to be supported, please be normal, exiting."
 	exit 1
 fi
 
-# finally
-schedule_packages $CANDIDATES
+LC_USER="$REQUESTER" \
+LOCAL_CALL="true" \
+/srv/jenkins/bin/reproducible_remote_scheduler.py "$@"

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