diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-01 15:22:00 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-01 15:22:00 +0200 |
commit | ebc7bc55812d47ab6c15ba665d553ec8f5993483 (patch) | |
tree | f31eac298295eef660496128aa632b448d0829bf | |
parent | ec22c5baa14105f42077305731569d091180f906 (diff) | |
download | jenkins.debian.net-ebc7bc55812d47ab6c15ba665d553ec8f5993483.tar.xz |
refactor, avoid duplication
-rwxr-xr-x | bin/jenkins_node_wrapper.sh | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh index d77a96c1..19c8eaa6 100755 --- a/bin/jenkins_node_wrapper.sh +++ b/bin/jenkins_node_wrapper.sh @@ -81,32 +81,22 @@ elif [[ "$*" =~ reproducible_setup_pbuilder_testing_.*_.* ]] ; then exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh testing ; croak "Exec failed"; elif [[ "$*" =~ reproducible_setup_pbuilder_experimental_.*_.* ]] ; then exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh experimental ; croak "Exec failed"; -elif [ "$*" = "reproducible_maintenance_armhf_bpi0" ] ; then +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_maintenance_armhf_cbxi4pro0" ] ; then - exec /srv/jenkins/bin/reproducible_maintenance.sh ; 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_maintenance_armhf_hb0" ] ; then - exec /srv/jenkins/bin/reproducible_maintenance.sh ; 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_maintenance_armhf_wbq0" ] ; then - exec /srv/jenkins/bin/reproducible_maintenance.sh ; croak "Exec failed"; elif [ "$*" = "reproducible_setup_schroot_unstable_armhf_wbq0" ] ; then exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable unstable ; croak "Exec failed"; -elif [ "$*" = "reproducible_maintenance_amd64_profitbricks1" ] ; then - exec /srv/jenkins/bin/reproducible_maintenance.sh ; 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_maintenance_amd64_profitbricks2" ] ; then - exec /srv/jenkins/bin/reproducible_maintenance.sh ; 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 |