From 83e5bc247e639cd5d547d5dd35e1b178585d5c8c Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 3 Apr 2015 15:28:25 +0200 Subject: reproducible: include link to reproducible url for package in artifact's index.html pages --- bin/reproducible_build.sh | 10 ++++++++-- 1 file 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##$REPRODUCIBLE_URL/${SUITE}/${ARCH}/${SRCPACKAGE}#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 -- cgit v1.2.3-70-g09d2