diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-02-20 17:17:13 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-02-20 17:17:13 +0100 |
commit | b199226b52917da2abc5753ce6a01407632f58bf (patch) | |
tree | ae3445f0cb59aafe5cf90e1a171c0c7004032d00 | |
parent | 2f53af1d9fd7f6c364a3fc91e0548020b30701f3 (diff) | |
download | jenkins.debian.net-b199226b52917da2abc5753ce6a01407632f58bf.tar.xz |
reproducible Debian: improve debugging buildinfo.debian.net
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-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." |