Setting validate_ssl=False has no effect. I still get an SLLError when trying to contact the server.
Here's the code:
import jenkinsapi
from jenkinsapi.jenkins import Jenkins
def get_server_instance():
jenkins_url = 'https://myserver:8080'
server = Jenkins(jenkins_url, username='myname', password='mypw', validate_ssl=False)
return server
print get_server_instance().version
EXPECTED RESULTS
I would expect no SSL errors to occur.
ACTUAL RESULTS
SSLError: HTTPSConnectionPool(host='myserver', port=8080): Max retries exceeded with url: /api/python?tree=jobs%5Bname%2Ccolor%2Curl%5D (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_record', 'wrong version number')],)",),))
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
ISSUE TYPE
Jenkinsapi 0.3.6
Jenkins 2.107.3
SUMMARY
Setting validate_ssl=False has no effect. I still get an SLLError when trying to contact the server.
Here's the code:
EXPECTED RESULTS
I would expect no SSL errors to occur.
ACTUAL RESULTS