Skip to content

Instantly share code, notes, and snippets.

View camalot's full-sized avatar

Ryan Conrad camalot

View GitHub Profile
@camalot
camalot / after.sh
Created April 14, 2016 03:32 — forked from justincampbell/after.sh
Jenkins + GitHub Commit Status API
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 \