[Qa-jenkins-scm] [jenkins.debian.net] 01/01: lvc: also pass params
Holger Levsen
holger at layer-acht.org
Sat May 28 14:43:46 UTC 2016
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 d4eb0bb8a569998b88025dbea86dea04dd84a933
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat May 28 16:43:32 2016 +0200
lvc: also pass params
---
bin/jenkins_master_wrapper.sh | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh
index cd7d08e..fe6e0f5 100755
--- a/bin/jenkins_master_wrapper.sh
+++ b/bin/jenkins_master_wrapper.sh
@@ -15,12 +15,14 @@ PORT=0
get_node_ssh_port $NODE_NAME
# by default we just use the job name as param
-PARAMS="$JOB_NAME"
-
-# though this could be used for other jobs as well...
-if [[ "$JOB_NAME" =~ rebootstrap_.* ]] ; then
- PARAMS="$PARAMS $@"
-fi
+case $JOB_NAME in
+ rebootstrap_.*) PARAMS="$JOB_NAME $@"
+ ;;
+ lvc_.*) PARAMS="$JOB_NAME $@"
+ ;;
+ *) PARAMS="$JOB_NAME"
+ ;;
+esac
# pseudo job used to cleanup nodes
if [ "$JOB_NAME" = "cleanup_nodes" ] ; then
--
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