summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/jenkins_master_wrapper.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh
index cd7d08e4..fe6e0f5f 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