[Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
This was super annoying to have to go dig for, so if you have Jenkins setup behind SSL using a temporary certificate. You can easily tell Jenkins to ignore the SSL certificate since it is using the requests library under the hood.
It just isn’t documented anywhere.
Thanks to @ChrisHirsch for the disable_warnings() tip!
from jenkinsapi.jenkins import Jenkins from jenkinsapi.utils.requester import Requester import requests requests.packages.urllib3.disable_warnings() jenkins = Jenkins(url, requester=Requester(username, password, baseurl=url, ssl_verify=False))