Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

jenkins crumb python request

with requests.Session() as s:
    s.auth = auth
    crumb = s.get(jenkins_url + "crumbIssuer/api/json").json()['crumb']
    s.headers.update({"token": token, "Jenkins-Crumb": crumb})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jenkins #crumb #python #request
ADD COMMENT
Topic
Name
5+6 =