Skip to content

Instantly share code, notes, and snippets.

@iamjarvo
Forked from justincampbell/after.sh
Created March 1, 2013 18:02
Show Gist options
  • Save iamjarvo/5066503 to your computer and use it in GitHub Desktop.
Save iamjarvo/5066503 to your computer and use it in GitHub Desktop.
if [[ $BUILD_STATUS == "success" ]]
then
export STATUS="success"
else
export STATUS="failure"
fi
curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \
-H "Content-Type: application/json" \
-X POST \
-d "{\"state\": \"$STATUS\", \"description\": \"Jenkins\", \"target_url\": \"http://my.jenkins.box.com/job/dividata/$BUILD_NUMBER/console\"}"
curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \
-H "Content-Type: application/json" \
-X POST \
-d "{\"state\": \"pending\", \"description\": \"Jenkins\", \"target_url\": \"http://my.jenkins.box.com/job/dividata/$BUILD_NUMBER/console\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment