Skip to content

Instantly share code, notes, and snippets.

@samratshaw
Created September 12, 2018 14:47
Show Gist options
  • Save samratshaw/a2ca34aa39e0792cadcc7cf8a4f0c396 to your computer and use it in GitHub Desktop.
Save samratshaw/a2ca34aa39e0792cadcc7cf8a4f0c396 to your computer and use it in GitHub Desktop.
Medium: Curl showing the Jenkins Authentication API (Using Username & Password)
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