[Qa-jenkins-scm] [jenkins.debian.net] 03/12: reproducible: build: refactor: use the case costructor instead of if/elif/elif/fi
Holger Levsen
holger at moszumanska.debian.org
Sat Apr 18 15:44:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 1442af4d1a169c028ad74d8de64a5b388d7ea310
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Mon Apr 6 15:02:03 2015 +0200
reproducible: build: refactor: use the case costructor instead of if/elif/elif/fi
---
bin/reproducible_build.sh | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index cfa0368..ed65051 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}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list