diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-19 14:29:37 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-19 14:29:37 -0800 |
commit | c9e4c6af4ce77c703c32b4c611075987960f7b64 (patch) | |
tree | 2ada7aac6e098d22e3b64cbf7516cb6d01aad3cb | |
parent | 86201594026f1e505b746633eeedd4a5820d4d89 (diff) | |
download | cryptography-c9e4c6af4ce77c703c32b4c611075987960f7b64.tar.gz cryptography-c9e4c6af4ce77c703c32b4c611075987960f7b64.tar.bz2 cryptography-c9e4c6af4ce77c703c32b4c611075987960f7b64.zip |
Raise on failure
-rw-r--r-- | tasks.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -21,6 +21,7 @@ import requests JENKINS_ROOT = "http://jenkins.cryptography.io" + @invoke.task def release(version): """ @@ -33,10 +34,11 @@ def release(version): invoke.run("twine upload -s dist/cryptography-{0}*".format(version)) token = getpass.getpass("Input the Jenkins token") - requests.post( + response = requests.post( "{0}/job/cryptography-wheel-builder/build".format(JENKINS_ROOT), params={ "token": token, "cause": "Building wheels for {0}".format(version) } ) + response.raise_for_status() |