Last active
June 9, 2017 17:32
-
-
Save SansGuidon/fe3fe2170b08f218d3af9cbaeb0edf34 to your computer and use it in GitHub Desktop.
Stash : Update Build status for a particular commit
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
{ | |
"state": "SUCCESSFUL", | |
"key": "jobname/20", | |
"name": "jobname/20", | |
"url": "https://<JENKINS URL>/jenkins/job/jobname/20", | |
"description": "Changes by MorganGeek" | |
} |
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 -u "<USER>:<PASSWORD>" -H "Content-Type: application/json" -X POST https://<STASH URL>/rest/build-status/1.0/commits/<COMMIT ID> -d @build.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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