[Qa-jenkins-scm] [jenkins.debian.net] 03/05: refactor, avoid duplication

Holger Levsen holger at moszumanska.debian.org
Tue Sep 1 13:27:25 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 8a0d382d0c969cac03193aedd9e3df614299ed31
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Sep 1 15:23:08 2015 +0200

    refactor, avoid duplication
---
 bin/jenkins_node_wrapper.sh | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh
index 19c8eaa..d51ae21 100755
--- a/bin/jenkins_node_wrapper.sh
+++ b/bin/jenkins_node_wrapper.sh
@@ -83,24 +83,14 @@ elif [[ "$*" =~ reproducible_setup_pbuilder_experimental_.*_.* ]] ; then
 	exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh experimental ; croak "Exec failed";
 elif [[ "$*" =~ reproducible_maintenance_.*_.* ]] ; then
 	exec /srv/jenkins/bin/reproducible_maintenance.sh ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_unstable_armhf_bpi0" ] ; then
-	exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable unstable ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_unstable_armhf_cbxi4pro0" ] ; then
-	exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable unstable ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_unstable_armhf_hb0" ] ; then
-	exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable unstable ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_unstable_armhf_wbq0" ] ; then
+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
 	exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-testing testing ; croak "Exec failed";
-elif [ "$*" = "reproducible_setup_schroot_unstable_amd64_profitbricks1" ] ; then
-	exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable unstable ; 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_unstable_amd64_profitbricks2" ] ; then
-	exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable unstable ; croak "Exec failed";
 elif [ "$*" = "reproducible_setup_schroot_experimental_amd64_profitbricks2" ] ; then
 	exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-experimental experimental ; croak "Exec failed";
 fi

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