summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_info.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-09 16:19:04 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-09 16:19:04 +0200
commit8b4e8c709ce69883c3874b97b063de21da9de3d2 (patch)
tree710c2488615031ba0096778aad46577541d60acf /bin/reproducible_info.sh
parent85f7b2fe76472ddf1237a4db24f08cfb79f934e0 (diff)
downloadjenkins.debian.net-8b4e8c709ce69883c3874b97b063de21da9de3d2.tar.xz
reproducible: refactor
Diffstat (limited to 'bin/reproducible_info.sh')
-rwxr-xr-xbin/reproducible_info.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/reproducible_info.sh b/bin/reproducible_info.sh
index e6d0bb54..3b66e6e5 100755
--- a/bin/reproducible_info.sh
+++ b/bin/reproducible_info.sh
@@ -4,12 +4,15 @@
# released under the GPLv=2
set -e
+# common code defining BUILD_ENV_VARS
+. /srv/jenkins/bin/reproducible_common.sh
+# these variables also need to be in bin/reproducible_common.sh where they define $BUILD_ENV_VARS (see right below)
ARCH=$(dpkg --print-architecture)
NUM_CPU=$(grep -c '^processor' /proc/cpuinfo)
CPU_MODEL=$(cat /proc/cpuinfo |grep "model name"|head -1|cut -d ":" -f2|xargs echo)
DATETIME=$(date +'%Y-%m-%d %H:%M %Z')
-for i in ARCH NUM_CPU CPU_MODEL DATETIME ; do
+for i in $BUILD_ENV_VARS ; do
echo "$i=${!i}"
done