Created
September 18, 2018 15:29
-
-
Save samratshaw/1d72a41b29c04125a1a5c78fcc585477 to your computer and use it in GitHub Desktop.
Medium: Curl for retrieving Jenkins API Token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --silent --basic http://<username>:<password>@<jenkins-url>/me/configure | hxselect '#apiToken' | sed 's/.*value="\([^"]*\)".*/\1\n/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment