From 9cc2692f59cd78e5d4ebc8aa06d81bfeb4d29e80 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 2 Aug 2015 16:44:26 +0200 Subject: abort job if the input aint right --- bin/find_dpkg_trigger_cycles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2