diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-02-20 17:51:32 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-02-20 17:51:32 +0100 |
commit | b79bba09b3f496271f5e52a046d3fb108112648b (patch) | |
tree | 146d5c40664574315a62b4f9d283a33927ce7c1a /bin | |
parent | 361771a5e13212c4d3525ded969a4c0444f6e0c0 (diff) | |
download | jenkins.debian.net-b79bba09b3f496271f5e52a046d3fb108112648b.tar.xz |
reproducible Debian: mail signed .buildinfo files to submit@buildinfo.kfreebsd.eu
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 2007347e..98535aba 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -842,8 +842,10 @@ share_buildinfo() { log_info "Submitting .buildinfo files to external archives:" # buildinfo.kfreebsd.eu administered by Steven Chamberlain <steven@pyro.eu.org> - mail -s "buildinfo from $NODE1" submit@buildinfo.kfreebsd.eu < ./b1/$BUILDINFO || log_error "Could not submit buildinfo from $NODE1 to submit@buildinfo.kfreebsd.eu." - mail -s "buildinfo from $NODE2" submit@buildinfo.kfreebsd.eu < ./b2/$BUILDINFO || log_error "Could not submit buildinfo from $NODE2 to submit@buildinfo.kfreebsd.eu" + for X in b1 b2 + do + mail -s "${X}/$BUILDINFO_SIGNED" submit@buildinfo.kfreebsd.eu < ./${X}/$BUILDINFO_SIGNED || log_error "Could not submit ${X}/$BUILDINFO_SIGNED to submit@buildinfo.kfreebsd.eu." + done log_info "Done submitting .buildinfo files to submit@buildinfo.kfreebsd.eu." # buildinfo.debian.net administred by Chris Lamb <lamby@debian.org> @@ -854,7 +856,7 @@ share_buildinfo() { curl -s -X PUT --max-time 30 --data-binary @- "https://buildinfo.debian.net/api/submit" < ./${X}/$BUILDINFO_SIGNED > $TMPFILE || log_error "Could not submit buildinfo from ${X} to http://buildinfo.debian.net/api/submit" cat $TMPFILE if grep -q "500 Internal Server Error" $TMPFILE ; then - MESSAGE="$(date -u ) - ${BUILD_URL}console got error code 500 from buildinfo.debian.net" + MESSAGE="$(date -u ) - ${BUILD_URL}console got error code 500 from buildinfo.debian.net for $(du -h ${X}/$BUILDINFO_SIGNED)" echo -e "$MESSAGE" | tee -a /var/log/jenkins/reproducible-submit2buildinfo.debian.net.log fi rm $TMPFILE |