mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Raise on failure
This commit is contained in:
parent
8620159402
commit
c9e4c6af4c
1 changed files with 3 additions and 1 deletions
4
tasks.py
4
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue