summaryrefslogtreecommitdiff
path: root/jenkinstool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-08-24 21:08:13 +0100
committerLars Wirzenius <liw@liw.fi>2012-08-24 21:08:13 +0100
commit72dad9e9cbe89ea7d43763ae61882c7b1f34ac7f (patch)
treed31d2a824a9fbcda4b0cb61982a0b27ea4a9b8f8 /jenkinstool
parentda2bdaef786328a18aa0b7565a93226257059fac (diff)
downloadjenkinstool-72dad9e9cbe89ea7d43763ae61882c7b1f34ac7f.tar.gz
Error handling and debuild -i fix
Diffstat (limited to 'jenkinstool')
-rwxr-xr-xjenkinstool6
1 files changed, 4 insertions, 2 deletions
diff --git a/jenkinstool b/jenkinstool
index cfa14f5..70e9343 100755
--- a/jenkinstool
+++ b/jenkinstool
@@ -29,6 +29,8 @@ import simplejenkinsapi
prelude = '''
+set -eu
+
if %(global.pretend)s; then exit 0; fi
url_exists()
@@ -40,7 +42,7 @@ upstream_version()
{
if [ -e setup.py ]
then
- python setup.py --version
+ python setup.py --version || exit 1
else
echo "UNKNOWN-PROJECT-VERSION"
fi
@@ -389,7 +391,7 @@ else
wget -O "../$origtgz" "$project_url/$tarball"
dch -v "$debianversion" --distribution "%(host.debian-dist)s" "CI build"
dch -r ''
- debuild -S -us -uc -i'\.bzr' -i'\.git'
+ debuild -S -us -uc -i
dput -f "%(global.dput-host)s" "../$changes"
fi
''')