aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-20 14:32:02 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-20 14:32:02 -0600
commitd1d6f0f906c5caa69e02f93b9933135c9fa6af25 (patch)
treed6f6f63a62dc98814fe79293e1a32b46945d1bbd
parent7894daa9a9bd42cd14f1ba72026e054b7ca3a000 (diff)
downloadcryptography-d1d6f0f906c5caa69e02f93b9933135c9fa6af25.tar.gz
cryptography-d1d6f0f906c5caa69e02f93b9933135c9fa6af25.tar.bz2
cryptography-d1d6f0f906c5caa69e02f93b9933135c9fa6af25.zip
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)
}
)