Friday, September 1, 2017

jenkins access using REST API

BitBucket authenticated Jenkins:

:Disabling ssl verication: [SSL: CERTIFICATE_VERIFY_FAILED]
http://tims.io/disabling-ssl-verification-in-python-jenkins-api/

- Find API Token using:
https://ci.automationanywhere.net/user/aagopalsingh/configure
http://your.jenkins.server/<user_id>/configure



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))


No comments:

Post a Comment