import jenkins
jen = jenkins.Jenkins(url="https://us1****xhpu******************.com:9080/" ,username="sk******", password="00326aef7*******************15695")
print jen.get_whoami()
注意:密码是API令牌
错误:
requests.exceptions.SSLError: HTTPSConnectionPool(host='**********************', port=9080): Max retries exceeded with url: /crumbIssuer/api/json (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'),))
我试过https→http,但没用。在
下面的代码有效
相关问题 更多 >
编程相关推荐