summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
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