Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active October 2, 2022 15:57
Show Gist options
  • Save KyMidd/5c4255276106181393154e176ad548a2 to your computer and use it in GitHub Desktop.
Save KyMidd/5c4255276106181393154e176ad548a2 to your computer and use it in GitHub Desktop.
> COMMITNOTIFICATION=$(curl -I -s -X POST -u "$userName:$api_token" "${urlOfJenkinsServer}/git/notifyCommit?url=${repo_clone_url}") && echo "$COMMITNOTIFICATION"
HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
Triggered: https://jenkins.hq.practicefusion.com/job/Job1/
Triggered: https://jenkins.hq.practicefusion.com/job/Job1_Any/
Triggered: https://jenkins.hq.practicefusion.com/job/Job1_GitHub/
Triggered: https://jenkins.hq.practicefusion.com/job/Job1_Release/
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 203
Server: xxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment