diff options
-rwxr-xr-x | bin/reproducible_build.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 3378e454..a55796ea 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -847,9 +847,16 @@ share_buildinfo() { log_info "Done submitting .buildinfo files to submit@buildinfo.kfreebsd.eu." # buildinfo.debian.net administred by Chris Lamb <lamby@debian.org> + local TMPFILE=$(mktemp --tmpdir=$TMPDIR) for X in b1 b2 do - curl -s -X PUT --max-time 30 --data-binary @- "https://buildinfo.debian.net/api/submit" < ./${X}/$BUILDINFO_SIGNED || log_error "Could not submit buildinfo from ${X} to http://buildinfo.debian.net/api/submit" + log_info "Submitting $(du -h ${X}/$BUILDINFO_SIGNED)" + 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 + irc_message debian-reproducible "error code 500 on buildinfo.debian.net" + fi + rm $TMPFILE done log_info "Done submitting .buildinfo files to http://buildinfo.debian.net/api/submit." |