Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Jenkins REST API example using crumb
Each Jenkins page has a REST API hyperlink at the bottom, this is because each page has its own endpoint.
http://localhost:8080/me
configure
Click 'Show API Token'
78e21f82a9e137614fef5b9593bcf827 = API Token
curl -s -u goll:78e21f82a9e137614fef5b9593bcf827 http://localhost:8080/crumbIssuer/api/json
curl -s -u goll:78e21f82a9e137614fef5b9593bcf827 -H 'Jenkins-Crumb:0f23a062e0b9b9d13295e26bc8c8e206' http://localhost:8080/job/foo2/buildWithParameters -d 'directoryName=zaid222'
@gragonmau

This comment has been minimized.

Show comment Hide comment
@gragonmau

gragonmau Oct 11, 2017

Thank you :D worked like a charm

Thank you :D worked like a charm

@Puneeth-n

This comment has been minimized.

Show comment Hide comment
@Puneeth-n

Puneeth-n Nov 3, 2017

🙏

🙏

@aluc267

This comment has been minimized.

Show comment Hide comment
@aluc267

aluc267 May 17, 2018

👍

aluc267 commented May 17, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment