aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-06-21 12:45:22 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-06-21 12:45:22 -0700
commit5c86c317bd4a37a6f78bb4f1c2a0a3ae88967abc (patch)
tree7f9c17114fd0ea7cf7374eaaa64632f6447b2080
parentb455df17588d0cb99bf03f3aed945fedb91b444c (diff)
parentd1d6f0f906c5caa69e02f93b9933135c9fa6af25 (diff)
downloadcryptography-5c86c317bd4a37a6f78bb4f1c2a0a3ae88967abc.tar.gz
cryptography-5c86c317bd4a37a6f78bb4f1c2a0a3ae88967abc.tar.bz2
cryptography-5c86c317bd4a37a6f78bb4f1c2a0a3ae88967abc.zip
Merge pull request #1157 from reaperhulk/fix-release-automation
switch to HTTP basic auth for jenkins release automation
-rw-r--r--tasks.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 9ffdc8a7..94a95414 100644
--- a/tasks.py
+++ b/tasks.py
@@ -91,11 +91,14 @@ def release(version):
"vectors/dist/cryptography_vectors-{0}*".format(version)
)
+ username = getpass.getpass("Input the GitHub/Jenkins username: ")
token = getpass.getpass("Input the Jenkins token: ")
response = requests.post(
"{0}/build".format(JENKINS_URL),
+ auth=requests.auth.HTTPBasicAuth(
+ username, token
+ ),
params={
- "token": token,
"cause": "Building wheels for {0}".format(version)
}
)