Created
September 12, 2018 14:47
-
-
Save samratshaw/a2ca34aa39e0792cadcc7cf8a4f0c396 to your computer and use it in GitHub Desktop.
Medium: Curl showing the Jenkins Authentication API (Using Username & Password)
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 -X POST JENKINS_URL/job/JOB_NAME/build \ | |
--user <USER:PASSWORD> \ | |
--data-urlencode json='{"parameter": [{"name":"id", "value":"123"}]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment