diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-08-24 21:08:13 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-08-24 21:08:13 +0100 |
commit | 72dad9e9cbe89ea7d43763ae61882c7b1f34ac7f (patch) | |
tree | d31d2a824a9fbcda4b0cb61982a0b27ea4a9b8f8 /jenkinstool | |
parent | da2bdaef786328a18aa0b7565a93226257059fac (diff) | |
download | jenkinstool-72dad9e9cbe89ea7d43763ae61882c7b1f34ac7f.tar.gz |
Error handling and debuild -i fix
Diffstat (limited to 'jenkinstool')
-rwxr-xr-x | jenkinstool | 6 |
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 ''') |