aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-02-19 14:29:37 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-02-19 14:29:37 -0800
commitc9e4c6af4ce77c703c32b4c611075987960f7b64 (patch)
tree2ada7aac6e098d22e3b64cbf7516cb6d01aad3cb
parent86201594026f1e505b746633eeedd4a5820d4d89 (diff)
downloadcryptography-c9e4c6af4ce77c703c32b4c611075987960f7b64.tar.gz
cryptography-c9e4c6af4ce77c703c32b4c611075987960f7b64.tar.bz2
cryptography-c9e4c6af4ce77c703c32b4c611075987960f7b64.zip
Raise on failure
-rw-r--r--tasks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 4b2209af..5fa86986 100644
--- a/tasks.py
+++ b/tasks.py
@@ -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()