summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-02 16:44:26 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-02 16:44:26 +0200
commit9cc2692f59cd78e5d4ebc8aa06d81bfeb4d29e80 (patch)
tree7c82e9089e34bd408ba1e5befffa82b82aff4021
parenta5cdcc3b1b6c65ae71447778e114a13595b5f491 (diff)
downloadjenkins.debian.net-9cc2692f59cd78e5d4ebc8aa06d81bfeb4d29e80.tar.xz
abort job if the input aint right
-rwxr-xr-xbin/find_dpkg_trigger_cycles.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/find_dpkg_trigger_cycles.sh b/bin/find_dpkg_trigger_cycles.sh
index be25f053..02ac7e45 100755
--- a/bin/find_dpkg_trigger_cycles.sh
+++ b/bin/find_dpkg_trigger_cycles.sh
@@ -173,7 +173,7 @@ curl --retry 3 --retry-delay 10 --globoff "http://binarycontrol.debian.net/?q=&p
tmpdir=`mktemp -d --tmpdir="$scratch"`
# curl is allowed to fail with exit status 23 because we want to stop
# downloading immediately after control.tar.gz has been extracted
- ( curl --retry 3 --retry-delay 10 --location --silent "$url" || [ "$?" -eq 23 ] || ( echo "curl failed">&2 && exit 1 ) ) \
+ ( curl --retry 3 --retry-delay 10 --location --silent "$url" || [ "$?" -eq 23 ] || ( echo "curl failed">&2 && /srv/jenkins/bin/abort.sh ) ) \
| dpkg-deb --ctrl-tarfile /dev/stdin \
| tar -C "$tmpdir" --exclude=./md5sums -x
if [ ! -f "$tmpdir/triggers" ]; then