pycontribs / jenkinsapi

A Python API for accessing resources and configuring Hudson & Jenkins continuous-integration servers
http://pypi.python.org/pypi/jenkinsapi
MIT License
859 stars 485 forks source link

Parameter "validate_ssl" has no effect #648

Closed BorisBrock closed 5 years ago

BorisBrock commented 6 years ago
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:

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')],)",),))

stale[bot] commented 5 years ago

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.

stale[bot] commented 5 years ago

Closed due to inactivity