Python-Jenkins API Connection Error
I'm trying to use python-jenkins to connect to a jenkins instance. My code snippet is as follows: import jenkins JENKINS_URL = 'xxxx' JENKINS_USER = 'yyyy' JENKINS_PASSWORD = 'zzz
Solution 1:
The problem here was that I was using the password for the account, whereas actually you need to use the API token.
The documentation (and variable names) in jenkinsapi don't make this clear at all!
Post a Comment for "Python-Jenkins API Connection Error"