summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-21 12:26:20 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-21 12:26:20 +0100
commit3fcebe39d32cb7079961c1a2d05838cb748cc2c3 (patch)
tree9ff6f201704b15ab8ecc9999250049e42fe1bba0 /bin/reproducible_build.sh
parent30706c84bc328c5d2cdec8a44a1e6f91a3f8b91f (diff)
downloadjenkins.debian.net-3fcebe39d32cb7079961c1a2d05838cb748cc2c3.tar.xz
more debug
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 8a6d5624..69c205dc 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -24,11 +24,12 @@ create_results_dirs() {
}
cleanup_all() {
+ set -x
if [ "$SAVE_ARTIFACTS" = "1" ] ; then
local random=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w5 | head -1)
local ARTIFACTS="artifacts/r00t-me/tmp-${random}/${SUITE}/${PACKAGE}"
mkdir -p /var/lib/jenkins/userContent/$ARTIFACTS
- cp -r $TMPDIR/* /var/lib/jenkins/userContent/$ARTIFACTS/
+ cp -rv $TMPDIR/* /var/lib/jenkins/userContent/$ARTIFACTS/
echo | tee -a ${RBUILDLOG}
echo "Artifacts from this build are preserved. They will be available for 72h only, so download them now if you want them." | tee -a ${RBUILDLOG}
echo "WARNING: You shouldn't trust packages you downloaded from this host, they can contain malware or the worst of your fears, packaged nicely in debian format." | tee -a ${RBUILDLOG}
@@ -37,6 +38,7 @@ cleanup_all() {
echo | tee -a ${RBUILDLOG}
kgb-client --conf /srv/jenkins/kgb/debian-reproducible.conf --relay-msg "new artifacts available at https://reproducible.debian.net/$ARTIFACTS" || true # don't fail the whole job
fi
+ set +x
rm -r $TMPDIR $TMPCFG
}