summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-18 13:39:33 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-18 13:41:24 +0100
commitfabf90e015deb9276a56f3326450ed3bc9ab7a01 (patch)
treeb77704f670bfce6daf79c70f88ca233cc2fa9875 /bin
parent038b0b62a181fe3c6a607c13fac5a94fa9ab0a35 (diff)
downloadjenkins.debian.net-fabf90e015deb9276a56f3326450ed3bc9ab7a01.tar.xz
reproducible archlinux: detect SSL certificate problems
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_archlinux.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index dff6c09e..67935781 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -20,7 +20,7 @@ for i in 0 1 2 3 4 ; do
done
HTML_FTBR=$(mktemp -t rhtml-archlinux-XXXXXXXX)
HTML_DEPWAIT=$(mktemp -t rhtml-archlinux-XXXXXXXX)
-for i in 0 1 2 3 4 ; do
+for i in 0 1 2 3 4 5; do
HTML_404[$i]=$(mktemp -t rhtml-archlinux-XXXXXXXX)
done
HTML_GOOD=$(mktemp -t rhtml-archlinux-XXXXXXXX)
@@ -58,17 +58,20 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
HTML_TARGET=${HTML_404[0]}
EXTRA_REASON=""
let NR_404+=1
- if [ ! -z "$(grep 'The requested URL returned error: 404 Not Found' $ARCHBASE/$REPOSITORY/$PKG/build1.log)" ] ; then
+ if [ ! -z "$(grep 'SSL certificate problem: unable to get local issuer certificate' $ARCHBASE/$REPOSITORY/$PKG/build1.log)" ] ; then
HTML_TARGET=${HTML_404[1]}
+ EXTRA_REASON="with SSL certificate problem"
+ elif [ ! -z "$(grep 'The requested URL returned error: 404 Not Found' $ARCHBASE/$REPOSITORY/$PKG/build1.log)" ] ; then
+ HTML_TARGET=${HTML_404[2]}
EXTRA_REASON="with 404 - file not found"
elif [ ! -z "$(grep 'The requested URL returned error: 503 Service Unavailable' $ARCHBASE/$REPOSITORY/$PKG/build1.log)" ] ; then
- HTML_TARGET=${HTML_404[2]}
+ HTML_TARGET=${HTML_404[3]}
EXTRA_REASON="with 503 - service unavailable"
elif [ ! -z "$(grep 'FAILED (unknown public key' $ARCHBASE/$REPOSITORY/$PKG/build1.log)" ] ; then
- HTML_TARGET=${HTML_404[3]}
+ HTML_TARGET=${HTML_404[4]}
EXTRA_REASON="(failed to verify source with PGP due to unknown public key)"
elif [ ! -z "$(egrep '==> ERROR: One or more PGP signatures could not be verified' $ARCHBASE/$REPOSITORY/$PKG/build1.log)" ] ; then
- HTML_TARGET=${HTML_404[4]}
+ HTML_TARGET=${HTML_404[5]}
EXTRA_REASON="(failed to verify source with PGP signatures)"
fi
echo " <img src=\"/userContent/static/weather-severe-alert.png\" alt=\"404 icon\" /> download failed $EXTRA_REASON" >> $HTML_BUFFER
@@ -168,7 +171,7 @@ cat $HTML_REPOSTATS >> $PAGE
rm $HTML_REPOSTATS > /dev/null
write_page " </table>"
write_page " <table><tr><th>repository</th><th>source package</th><th>test result</th><th>test date</th><th>1st build log</th><th>2nd build log</th></tr>"
-for i in $HTML_UNKNOWN $(for j in 0 1 2 3 4 ; do echo ${HTML_404[$j]} ; done) $HTML_DEPWAIT $(for j in 0 1 2 3 4 ; do echo ${HTML_FTBFS[$j]} ; done) $HTML_FTBR $HTML_GOOD ; do
+for i in $HTML_UNKNOWN $(for j in 0 1 2 3 4 5 ; do echo ${HTML_404[$j]} ; done) $HTML_DEPWAIT $(for j in 0 1 2 3 4 ; do echo ${HTML_FTBFS[$j]} ; done) $HTML_FTBR $HTML_GOOD ; do
cat $i >> $PAGE
rm $i > /dev/null
done