[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: include link to reproducible url for package in artifact's index.html pages
Holger Levsen
holger at moszumanska.debian.org
Fri Apr 3 13:28:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 83e5bc247e639cd5d547d5dd35e1b178585d5c8c
Author: Holger Levsen <holger at layer-acht.org>
Date: Fri Apr 3 15:28:25 2015 +0200
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 29820af..e76eb2c 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list