summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-01 15:25:30 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-01 15:25:30 +0200
commit14bc8512be3a78e0ccd0397531b1297e84437564 (patch)
tree00343d63c6c794442b758221dbc0c13427cf58a4
parent8a0d382d0c969cac03193aedd9e3df614299ed31 (diff)
downloadjenkins.debian.net-14bc8512be3a78e0ccd0397531b1297e84437564.tar.xz
refactor, avoid duplication
-rwxr-xr-xbin/jenkins_node_wrapper.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh
index d51ae21a..b5ffccf8 100755
--- a/bin/jenkins_node_wrapper.sh
+++ b/bin/jenkins_node_wrapper.sh
@@ -85,13 +85,9 @@ elif [[ "$*" =~ reproducible_maintenance_.*_.* ]] ; then
exec /srv/jenkins/bin/reproducible_maintenance.sh ; croak "Exec failed";
elif [[ "$*" =~ reproducible_setup_schroot_unstable_.*_.* ]] ; then
exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable unstable ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_testing_amd64_profitbricks1" ] ; then
+elif [[ "$*" =~ reproducible_setup_schroot_testing_.*_.* ]] ; then
exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-testing testing ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_experimental_amd64_profitbricks1" ] ; then
- exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-experimental experimental ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_testing_amd64_profitbricks2" ] ; then
- exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-testing testing ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_experimental_amd64_profitbricks2" ] ; then
+elif [[ "$*" =~ reproducible_setup_schroot_experimental_.*_.* ]] ; then
exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-experimental experimental ; croak "Exec failed";
fi