From 603becb6b6c3f956a2d437c1c553fce928ac4c53 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 30 Aug 2015 21:28:49 +0200 Subject: rename reproducible_(master|node)_wrapper.sh to jenkins_(master|node)_wrapper.sh --- bin/jenkins_master_wrapper.sh | 25 +++++++ bin/jenkins_node_wrapper.sh | 142 +++++++++++++++++++++++++++++++++++++ bin/reproducible_master_wrapper.sh | 25 ------- bin/reproducible_node_wrapper.sh | 142 ------------------------------------- jenkins-nodes-home/authorized_keys | 2 +- job-cfg/reproducible.yaml | 68 +++++++++--------- 6 files changed, 202 insertions(+), 202 deletions(-) create mode 100755 bin/jenkins_master_wrapper.sh create mode 100755 bin/jenkins_node_wrapper.sh delete mode 100755 bin/reproducible_master_wrapper.sh delete mode 100755 bin/reproducible_node_wrapper.sh diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh new file mode 100755 index 00000000..e11aec05 --- /dev/null +++ b/bin/jenkins_master_wrapper.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -u +set -e + +case "$NODE_NAME" in + bpi0-armhf-rb.debian.net) + exec ssh -p 2222 $NODE_NAME "$JOB_NAME" + ;; + hb0-armhf-rb.debian.net) + exec ssh -p 2224 $NODE_NAME "$JOB_NAME" + ;; + wbq0-armhf-rb.debian.net) + exec ssh -p 2225 $NODE_NAME "$JOB_NAME" + ;; + cbxi4pro0-armhf-rb.debian.net) + exec ssh -p 2226 $NODE_NAME "$JOB_NAME" + ;; + profitbricks-build?-amd64.debian.net) + exec ssh $NODE_NAME "$JOB_NAME" + ;; + *) + echo >&2 "Unknown node $NODE_NAME." + exit 1 +esac diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh new file mode 100755 index 00000000..fa0fac13 --- /dev/null +++ b/bin/jenkins_node_wrapper.sh @@ -0,0 +1,142 @@ +#!/usr/bin/env bash + +# Copyright (c) 2009, 2010, 2012, 2015 Peter Palfrader +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +set -e +set -u + +MYLOGNAME="`basename "$0"`[$$]" + +usage() { + echo "local Usage: $0" + echo "via ssh orig command:" + echo " " +} + +info() { + echo >&2 "$MYLOGNAME $1" + echo > ~/jenkins-ssh-wrap.log "$MYLOGNAME $1" +} + +croak() { + echo >&2 "$MYLOGNAME $1" + echo > ~/jenkins-ssh-wrap.log "$MYLOGNAME $1" + exit 1 +} + +if [ "${1:-}" = "-h" ] || [ "${1:-}" = "--help" ]; then + usage + exit 0 +fi + +# check/parse remote command line +if [ -z "${SSH_ORIGINAL_COMMAND:-}" ] ; then + croak "Did not find SSH_ORIGINAL_COMMAND" +fi +set "dummy" ${SSH_ORIGINAL_COMMAND} +shift + +info "remote_host called with $*" + +allowed_cmds=() + +if [[ "$*" =~ rebootstrap_.* ]] ; then + REBOOTSTRAPSH="/srv/jenkins/bin/chroot-run.sh sid minimal ./bootstrap.sh" + REBOOTSTRAPSH="$REBOOTSTRAPSH HOST_ARCH=$(echo $1 | cut -d "_" -f2)" + if [[ "$*" =~ .*_debbindiff.* ]] ; then + REBOOTSTRAPSH="$REBOOTSTRAPSH ENABLE_DEBBINDIFF=yes" + fi + export LC_ALL=C + exec $REBOOTSTRAPSH ; croak "Exec failed"; +elif [ "$1" = "/srv/jenkins/bin/reproducible_build.sh" ] && ( [ "$2" = "1" ] || [ "$2" = "2" ] ) ; then + exec /srv/jenkins/bin/reproducible_build.sh $2 $3 $4 ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_pbuilder_unstable_armhf_bpi0" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable ; croak "Exec failed"; +elif [ "$*" = "reproducible_maintenance_armhf_bpi0" ] ; then + exec /srv/jenkins/bin/reproducible_maintenance.sh ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_schroot_unstable_debbindiff_armhf_bpi0" ] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_pbuilder_unstable_armhf_cbxi4pro0" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh 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_debbindiff_armhf_cbxi4pro0" ] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_pbuilder_unstable_armhf_hb0" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh 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_debbindiff_armhf_hb0" ] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_pbuilder_unstable_armhf_wbq0" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh 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_debbindiff_armhf_wbq0" ] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_setup_pbuilder_testing_amd64_profitbricks1" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh testing ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_pbuilder_unstable_amd64_profitbricks1" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_pbuilder_experimental_amd64_profitbricks1" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh experimental ; croak "Exec failed"; +elif [ "$*" = "reproducible_maintenance_amd64_profitbricks1" ] ; then + exec /srv/jenkins/bin/reproducible_maintenance.sh ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_schroot_testing_debbindiff_amd64_profitbricks1" ] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-testing-debbindiff testing debbindiff locales-all ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_schroot_unstable_debbindiff_amd64_profitbricks1" ] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_pbuilder_testing_amd64_profitbricks2" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh testing ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_pbuilder_unstable_amd64_profitbricks2" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_pbuilder_experimental_amd64_profitbricks2" ] ; then + exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh 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_debbindiff_amd64_profitbricks2" ] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-testing-debbindiff testing debbindiff locales-all ; croak "Exec failed"; +elif [ "$*" = "reproducible_setup_schroot_unstable_debbindiff_amd64_profitbricks2" ] ; then + exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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 + +croak "Command '$*' not found in allowed commands." diff --git a/bin/reproducible_master_wrapper.sh b/bin/reproducible_master_wrapper.sh deleted file mode 100755 index e11aec05..00000000 --- a/bin/reproducible_master_wrapper.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -set -u -set -e - -case "$NODE_NAME" in - bpi0-armhf-rb.debian.net) - exec ssh -p 2222 $NODE_NAME "$JOB_NAME" - ;; - hb0-armhf-rb.debian.net) - exec ssh -p 2224 $NODE_NAME "$JOB_NAME" - ;; - wbq0-armhf-rb.debian.net) - exec ssh -p 2225 $NODE_NAME "$JOB_NAME" - ;; - cbxi4pro0-armhf-rb.debian.net) - exec ssh -p 2226 $NODE_NAME "$JOB_NAME" - ;; - profitbricks-build?-amd64.debian.net) - exec ssh $NODE_NAME "$JOB_NAME" - ;; - *) - echo >&2 "Unknown node $NODE_NAME." - exit 1 -esac diff --git a/bin/reproducible_node_wrapper.sh b/bin/reproducible_node_wrapper.sh deleted file mode 100755 index fa0fac13..00000000 --- a/bin/reproducible_node_wrapper.sh +++ /dev/null @@ -1,142 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2009, 2010, 2012, 2015 Peter Palfrader -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -set -e -set -u - -MYLOGNAME="`basename "$0"`[$$]" - -usage() { - echo "local Usage: $0" - echo "via ssh orig command:" - echo " " -} - -info() { - echo >&2 "$MYLOGNAME $1" - echo > ~/jenkins-ssh-wrap.log "$MYLOGNAME $1" -} - -croak() { - echo >&2 "$MYLOGNAME $1" - echo > ~/jenkins-ssh-wrap.log "$MYLOGNAME $1" - exit 1 -} - -if [ "${1:-}" = "-h" ] || [ "${1:-}" = "--help" ]; then - usage - exit 0 -fi - -# check/parse remote command line -if [ -z "${SSH_ORIGINAL_COMMAND:-}" ] ; then - croak "Did not find SSH_ORIGINAL_COMMAND" -fi -set "dummy" ${SSH_ORIGINAL_COMMAND} -shift - -info "remote_host called with $*" - -allowed_cmds=() - -if [[ "$*" =~ rebootstrap_.* ]] ; then - REBOOTSTRAPSH="/srv/jenkins/bin/chroot-run.sh sid minimal ./bootstrap.sh" - REBOOTSTRAPSH="$REBOOTSTRAPSH HOST_ARCH=$(echo $1 | cut -d "_" -f2)" - if [[ "$*" =~ .*_debbindiff.* ]] ; then - REBOOTSTRAPSH="$REBOOTSTRAPSH ENABLE_DEBBINDIFF=yes" - fi - export LC_ALL=C - exec $REBOOTSTRAPSH ; croak "Exec failed"; -elif [ "$1" = "/srv/jenkins/bin/reproducible_build.sh" ] && ( [ "$2" = "1" ] || [ "$2" = "2" ] ) ; then - exec /srv/jenkins/bin/reproducible_build.sh $2 $3 $4 ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_pbuilder_unstable_armhf_bpi0" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable ; croak "Exec failed"; -elif [ "$*" = "reproducible_maintenance_armhf_bpi0" ] ; then - exec /srv/jenkins/bin/reproducible_maintenance.sh ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_schroot_unstable_debbindiff_armhf_bpi0" ] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_pbuilder_unstable_armhf_cbxi4pro0" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh 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_debbindiff_armhf_cbxi4pro0" ] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_pbuilder_unstable_armhf_hb0" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh 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_debbindiff_armhf_hb0" ] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_pbuilder_unstable_armhf_wbq0" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh 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_debbindiff_armhf_wbq0" ] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_setup_pbuilder_testing_amd64_profitbricks1" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh testing ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_pbuilder_unstable_amd64_profitbricks1" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_pbuilder_experimental_amd64_profitbricks1" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh experimental ; croak "Exec failed"; -elif [ "$*" = "reproducible_maintenance_amd64_profitbricks1" ] ; then - exec /srv/jenkins/bin/reproducible_maintenance.sh ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_schroot_testing_debbindiff_amd64_profitbricks1" ] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-testing-debbindiff testing debbindiff locales-all ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_schroot_unstable_debbindiff_amd64_profitbricks1" ] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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_pbuilder_testing_amd64_profitbricks2" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh testing ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_pbuilder_unstable_amd64_profitbricks2" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_pbuilder_experimental_amd64_profitbricks2" ] ; then - exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh 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_debbindiff_amd64_profitbricks2" ] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-testing-debbindiff testing debbindiff locales-all ; croak "Exec failed"; -elif [ "$*" = "reproducible_setup_schroot_unstable_debbindiff_amd64_profitbricks2" ] ; then - exec /srv/jenkins/bin/schroot-create.sh reproducible reproducible-unstable-debbindiff unstable debbindiff locales-all ; 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 - -croak "Command '$*' not found in allowed commands." diff --git a/jenkins-nodes-home/authorized_keys b/jenkins-nodes-home/authorized_keys index 5924a87c..a285cbb0 100644 --- a/jenkins-nodes-home/authorized_keys +++ b/jenkins-nodes-home/authorized_keys @@ -1 +1 @@ -command="/srv/jenkins/bin/reproducible_node_wrapper.sh",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,from="78.137.96.196" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSPYH1KKv6PsW0IgNcPbI/l2rjhxPaOGT/lbgaPzVjwPWlqHAEB0PctzNzkduRiaEMhTmcDTCsMOVkBGiPMmuBltqzpGSjcAc3v/sDYaDn+Onj5pTaG8HBMKqxOQP9I24xNjb21tRrmRSDAUrSHHiEm2Lu64efA3vE/L447ZYs53aLd2fBt0zoFKHswasFR57y6y9/3VJTdAnGrAIq9QxnMi2Tbg/KZDiYYmodfCMrAnATTkwGntcINz7FO/HAxHAs1YryzuoDOA02Xqxg4uzlxQgkL91/OhKVKd+2TBg+FAVUkiCKY+uSCdgN1yjoUa0fPFaWEbtEwrWfZgIAIINf jenkins@jenkins +command="/srv/jenkins/bin/jenkins_node_wrapper.sh",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,from="78.137.96.196" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSPYH1KKv6PsW0IgNcPbI/l2rjhxPaOGT/lbgaPzVjwPWlqHAEB0PctzNzkduRiaEMhTmcDTCsMOVkBGiPMmuBltqzpGSjcAc3v/sDYaDn+Onj5pTaG8HBMKqxOQP9I24xNjb21tRrmRSDAUrSHHiEm2Lu64efA3vE/L447ZYs53aLd2fBt0zoFKHswasFR57y6y9/3VJTdAnGrAIq9QxnMi2Tbg/KZDiYYmodfCMrAnATTkwGntcINz7FO/HAxHAs1YryzuoDOA02Xqxg4uzlxQgkL91/OhKVKd+2TBg+FAVUkiCKY+uSCdgN1yjoUa0fPFaWEbtEwrWfZgIAIINf jenkins@jenkins diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml index c8ad97f7..2c8e6452 100644 --- a/job-cfg/reproducible.yaml +++ b/job-cfg/reproducible.yaml @@ -452,37 +452,37 @@ - '{name}_maintenance_armhf_bpi0': my_description: 'Do some maintenance: check for old directories laying around, do backups, etc.' my_timed: '5 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'bpi0' - '{name}_maintenance_armhf_cbxi4pro0': my_description: 'Do some maintenance: check for old directories laying around, do backups, etc.' my_timed: '5 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'cbxi4pro0' - '{name}_maintenance_armhf_hb0': my_description: 'Do some maintenance: check for old directories laying around, do backups, etc.' my_timed: '5 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'hb0' - '{name}_maintenance_armhf_wbq0': my_description: 'Do some maintenance: check for old directories laying around, do backups, etc.' my_timed: '5 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'wbq0' - '{name}_maintenance_amd64_profitbricks1': my_description: 'Do some maintenance: check for old directories laying around, do backups, etc.' my_timed: '5 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_maintenance_amd64_profitbricks2': my_description: 'Do some maintenance: check for old directories laying around, do backups, etc.' my_timed: '5 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_setup_pbuilder_testing': @@ -494,37 +494,37 @@ - '{name}_setup_pbuilder_unstable_armhf_bpi0': my_description: 'Setup and update pbuilder for reproducible builds of packages from testing as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'bpi0' - '{name}_setup_pbuilder_unstable_armhf_cbxi4pro0': my_description: 'Setup and update pbuilder for reproducible builds of packages from testing as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'cbxi4pro0' - '{name}_setup_pbuilder_unstable_armhf_hb0': my_description: 'Setup and update pbuilder for reproducible builds of packages from testing as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'hb0' - '{name}_setup_pbuilder_unstable_armhf_wbq0': my_description: 'Setup and update pbuilder for reproducible builds of packages from testing as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'wbq0' - '{name}_setup_pbuilder_testing_amd64_profitbricks1': my_description: 'Setup and update pbuilder for reproducible builds of packages from testing as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_setup_pbuilder_testing_amd64_profitbricks2': my_description: 'Setup and update pbuilder for reproducible builds of packages from testing as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_setup_pbuilder_unstable': @@ -536,13 +536,13 @@ - '{name}_setup_pbuilder_unstable_amd64_profitbricks1': my_description: 'Setup and update pbuilder for reproducible builds of packages from unstable as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_setup_pbuilder_unstable_amd64_profitbricks2': my_description: 'Setup and update pbuilder for reproducible builds of packages from unstable as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_setup_pbuilder_experimental': @@ -554,13 +554,13 @@ - '{name}_setup_pbuilder_experimental_amd64_profitbricks1': my_description: 'Setup and update pbuilder for reproducible builds of packages from experimental as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_setup_pbuilder_experimental_amd64_profitbricks2': my_description: 'Setup and update pbuilder for reproducible builds of packages from experimental as described in https://wiki.debian.org/ReproducibleBuilds#Usage_example' my_timed: '23 0,4,8,12,16,20 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_setup_schroot_unstable_debbindiff': @@ -572,13 +572,13 @@ - '{name}_setup_schroot_unstable_debbindiff_amd64_profitbricks1': my_description: 'Setup schroot for running debbindiff in a unstable environment (this is needed to be able to correctly investigate haskell binaries...)' my_timed: '23 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_setup_schroot_unstable_debbindiff_amd64_profitbricks2': my_description: 'Setup schroot for running debbindiff in a unstable environment (this is needed to be able to correctly investigate haskell binaries...)' my_timed: '23 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_setup_schroot_testing_debbindiff': @@ -590,37 +590,37 @@ - '{name}_setup_schroot_unstable_debbindiff_armhf_bpi0': my_description: 'Setup schroot for running debbindiff in a testing environment (this is needed to be able to correctly investigate haskell binaries...)' my_timed: '23 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'bpi0' - '{name}_setup_schroot_unstable_debbindiff_armhf_cbxi4pro0': my_description: 'Setup schroot for running debbindiff in a testing environment (this is needed to be able to correctly investigate haskell binaries...)' my_timed: '23 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'cbxi4pro0' - '{name}_setup_schroot_unstable_debbindiff_armhf_hb0': my_description: 'Setup schroot for running debbindiff in a testing environment (this is needed to be able to correctly investigate haskell binaries...)' my_timed: '23 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'hb0' - '{name}_setup_schroot_unstable_debbindiff_armhf_wbq0': my_description: 'Setup schroot for running debbindiff in a testing environment (this is needed to be able to correctly investigate haskell binaries...)' my_timed: '23 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'wbq0' - '{name}_setup_schroot_testing_debbindiff_amd64_profitbricks1': my_description: 'Setup schroot for running debbindiff in a testing environment (this is needed to be able to correctly investigate haskell binaries...)' my_timed: '23 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_setup_schroot_testing_debbindiff_amd64_profitbricks2': my_description: 'Setup schroot for running debbindiff in a testing environment (this is needed to be able to correctly investigate haskell binaries...)' my_timed: '23 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_setup_schroot_unstable': @@ -632,13 +632,13 @@ - '{name}_setup_schroot_unstable_amd64_profitbricks1': my_description: 'Setup unstable schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_setup_schroot_unstable_amd64_profitbricks2': my_description: 'Setup unstable schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_setup_schroot_testing': @@ -650,37 +650,37 @@ - '{name}_setup_schroot_unstable_armhf_bpi0': my_description: 'Setup unstable schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'bpi0' - '{name}_setup_schroot_unstable_armhf_cbxi4pro0': my_description: 'Setup unstable schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'cbxi4pro0' - '{name}_setup_schroot_unstable_armhf_hb0': my_description: 'Setup unstable schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'hb0' - '{name}_setup_schroot_unstable_armhf_wbq0': my_description: 'Setup unstable schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'wbq0' - '{name}_setup_schroot_testing_amd64_profitbricks1': my_description: 'Setup testing schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_setup_schroot_testing_amd64_profitbricks2': my_description: 'Setup testing schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_setup_schroot_experimental': @@ -692,13 +692,13 @@ - '{name}_setup_schroot_experimental_amd64_profitbricks1': my_description: 'Setup experimental schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks1' - '{name}_setup_schroot_experimental_amd64_profitbricks2': my_description: 'Setup experimental schroot for fetching source packages for the builder jobs.' my_timed: '23 1 * * *' - my_shell: '/srv/jenkins/bin/reproducible_master_wrapper.sh' + my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh' my_recipients: 'qa-jenkins-scm@lists.alioth.debian.org' my_node: 'profitbricks2' - '{name}_scheduler': -- cgit v1.2.3-54-g00ecf