Created
May 28, 2013 14:47
-
-
Save subdigital/5663295 to your computer and use it in GitHub Desktop.
Update github branch status from Jenkins
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
gcli status create DeliRadio deliradio-web $GIT_COMMIT \ | |
--params=state:pending \ | |
target_url:$BUILD_URL \ | |
description:"Build #$BUILD_NUMBER is running" \ | |
-f csv | |
# Your build... | |
gcli status create DeliRadio deliradio-web $GIT_COMMIT \ | |
--params=state:success \ | |
target_url:$BUILD_URL \ | |
description:"Build #$BUILD_NUMBER passed" \ | |
-f csv | |
# Then a post-build action, which detects failure by scanning the output | |
gcli status create DeliRadio deliradio-web $GIT_COMMIT \ | |
--params=state:failure \ | |
target_url:$BUILD_URL \ | |
description:"Build #$BUILD_NUMBER failed" \ | |
-f csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script requires the github_cli gem: https://github.com/peter-murach/github_cli