summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-04-03 15:28:25 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-03 15:28:25 +0200
commit83e5bc247e639cd5d547d5dd35e1b178585d5c8c (patch)
treed7e29be813f9522dd16922ec1089fa2ae162e724 /bin
parent39b6bc1999529b12bba2aa14e5f46d60376e2a0d (diff)
downloadjenkins.debian.net-83e5bc247e639cd5d547d5dd35e1b178585d5c8c.tar.xz
reproducible: include link to reproducible url for package in artifact's index.html pages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 29820af1..e76eb2c7 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -33,9 +33,15 @@ cleanup_all() {
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}
echo "If you are not afraid facing your fears while helping the world by investigating reproducible build issues, you can download the artifacts from the following location:" | tee -a ${RBUILDLOG}
- echo "https://reproducible.debian.net/$ARTIFACTS" | tee -a ${RBUILDLOG}
+ URL="https://reproducible.debian.net/$ARTIFACTS"
+ TMPFILE=$(mktemp)
+ curl $URL > $TMPFILE 2>/dev/null
+ sed -i "s#</h1>#</h1><a href=\"$REPRODUCIBLE_URL/${SUITE}/${ARCH}/${SRCPACKAGE}\">$REPRODUCIBLE_URL/${SUITE}/${ARCH}/${SRCPACKAGE}</a>#g" $TMPFILE
+ chmod 644 $TMPFILE
+ mv $TMPFILE /var/lib/jenkins/userContent/$ARTIFACTS/index.html
+ echo "$URL" | tee -a ${RBUILDLOG}
echo | tee -a ${RBUILDLOG}
- MESSAGE="https://reproducible.debian.net/$ARTIFACTS/ published"
+ MESSAGE="$URL published"
if [ $SAVE_ARTIFACTS -eq 3 ] ; then
MESSAGE="$MESSAGE, $DBDVERSION had troubles with these..."
fi