diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-09 16:19:04 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-09 16:19:04 +0200 |
commit | 8b4e8c709ce69883c3874b97b063de21da9de3d2 (patch) | |
tree | 710c2488615031ba0096778aad46577541d60acf /bin/reproducible_nodes_info.sh | |
parent | 85f7b2fe76472ddf1237a4db24f08cfb79f934e0 (diff) | |
download | jenkins.debian.net-8b4e8c709ce69883c3874b97b063de21da9de3d2.tar.xz |
reproducible: refactor
Diffstat (limited to 'bin/reproducible_nodes_info.sh')
-rwxr-xr-x | bin/reproducible_nodes_info.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_nodes_info.sh b/bin/reproducible_nodes_info.sh index 7283f05b..fd5baafd 100755 --- a/bin/reproducible_nodes_info.sh +++ b/bin/reproducible_nodes_info.sh @@ -15,13 +15,13 @@ mkdir -p $TARGET_DIR TMPFILE_SRC=$(mktemp) TMPFILE_NODE=$(mktemp) -for NODE in bpi0-armhf-rb.debian.net hb0-armhf-rb.debian.net wbq0-armhf-rb.debian.net cbxi4pro0-armhf-rb.debian.net profitbricks-build1-amd64.debian.net profitbricks-build2-amd64.debian.net ; do +for NODE in $BUILD_NODES ; do # call jenkins_master_wrapper.sh so we only need to track different ssh ports in one place # jenkins_master_wrapper.sh needs NODE_NAME and JOB_NAME export NODE_NAME=$NODE export JOB_NAME=/srv/jenkins/bin/reproducible_info.sh /srv/jenkins/bin/jenkins_master_wrapper.sh > $TMPFILE_SRC - for KEY in ARCH NUM_CPU CPU_MODEL DATETIME ; do + for KEY in $BUILD_ENV_VARS ; do VALUE=$(egrep "^$KEY=" $TMPFILE_SRC | cut -d "=" -f2-) if [ ! -z "$VALUE" ] ; then echo "$KEY=$VALUE" >> $TMPFILE_NODE |