pycontribs / jenkinsapi

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

SSL Error when using jenkinsapi #857

Open vladi14 opened 6 months ago

vladi14 commented 6 months ago
ISSUE TYPE
Jenkinsapi VERSION

0.3.13

Jenkins VERSION

[Jenkins 2.346.1]

SUMMARY

When trying trigger job with following script on https server getting SSL error. (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1006)')))

EXPECTED RESULTS

Work correct like with requests module using SSL_CONEXT

ACTUAL RESULTS

(Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1006)')))

USEFUL INFORMATION
 jenkins = Jenkins(baseurl=URL, username=username, password=token, ssl_verify=False)
params = {"key":"value"}
jenkins.build_job(JOB, params)