Skip to content

Instantly share code, notes, and snippets.

@SansGuidon
Last active June 9, 2017 17:32
Show Gist options
  • Save SansGuidon/fe3fe2170b08f218d3af9cbaeb0edf34 to your computer and use it in GitHub Desktop.
Save SansGuidon/fe3fe2170b08f218d3af9cbaeb0edf34 to your computer and use it in GitHub Desktop.
Stash : Update Build status for a particular commit
{
"state": "SUCCESSFUL",
"key": "jobname/20",
"name": "jobname/20",
"url": "https://<JENKINS URL>/jenkins/job/jobname/20",
"description": "Changes by MorganGeek"
}
curl -u "<USER>:<PASSWORD>" -H "Content-Type: application/json" -X POST https://<STASH URL>/rest/build-status/1.0/commits/<COMMIT ID> -d @build.json
@SansGuidon
Copy link
Author

SansGuidon commented Jun 9, 2017

Additional info if you try to use stash notifier in jenkins 2 with pipeline
http://techqa.info/programming/question/37159039/use-stash-notifier-plugin-on-jenkins-2.0-multibranch-pipeline

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