Jenkins: Http Error 403 When Getting Config
I try to update Jenkins jobs' config programmatically, and the python Jenkins api looked ok, but I can't retrieve a config because of HTTP error 403 (forbidden): from jenkinsapi im
Solution 1:
This SO post is the solution. I now get an error 500, but this is another story...
Solution 2:
The python jenkins api uses urllib2
.
You can see this answer: https://stackoverflow.com/a/24048578/1733117 for using preemptive basic authentication, or retry with basic authentication when you get a 403
(e.g. anonymous user has limited access).
Post a Comment for "Jenkins: Http Error 403 When Getting Config"