summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-06 15:02:03 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-18 17:20:08 +0200
commit1442af4d1a169c028ad74d8de64a5b388d7ea310 (patch)
tree99d41d566cbb7b07f319a58392e835e722c53700 /bin
parente25e08b1be4a5588fa3683bbf0106193e6f44c05 (diff)
downloadjenkins.debian.net-1442af4d1a169c028ad74d8de64a5b388d7ea310.tar.xz
reproducible: build: refactor: use the case costructor instead of if/elif/elif/fi
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index cfa03680..ed650515 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -122,14 +122,18 @@ call_debbindiff() {
set +x
rm -f $DBDCHROOT_READLOCK
echo | tee -a ${RBUILDLOG}
- if [ $RESULT -eq 124 ] ; then
- dbd_timeout
- elif [ $RESULT -eq 1 ] ; then
- DEBBINDIFFOUT="$DBDVERSION found issues, please investigate $REPRODUCIBLE_URL/dbd/${SUITE}/${ARCH}/${DBDREPORT}"
- elif [ $RESULT -eq 2 ] ; then
- DEBBINDIFFOUT="$DBDVERSION had trouble comparing the two builds. Please investigate $REPRODUCIBLE_URL/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log"
- SAVE_ARTIFACTS=3
- fi
+ case $RESULT in
+ 124)
+ dbd_timeout
+ ;;
+ 1)
+ DEBBINDIFFOUT="$DBDVERSION found issues, please investigate $REPRODUCIBLE_URL/dbd/${SUITE}/${ARCH}/${DBDREPORT}"
+ ;;
+ 2)
+ DEBBINDIFFOUT="$DBDVERSION had trouble comparing the two builds. Please investigate $REPRODUCIBLE_URL/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log"
+ SAVE_ARTIFACTS=3
+ ;;
+ esac
if [ $RESULT -eq 0 ] && [ ! -f ./${DBDREPORT} ] && [ -f b1/${BUILDINFO} ] ; then
cp b1/${BUILDINFO} /var/lib/jenkins/userContent/buildinfo/${SUITE}/${ARCH}/ > /dev/null 2>&1
figlet ${SRCPACKAGE}