switch to HTTP basic auth for jenkins release automation
diff --git a/tasks.py b/tasks.py
index 9ffdc8a..94a9541 100644
--- a/tasks.py
+++ b/tasks.py
@@ -91,11 +91,14 @@
"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)
}
)