Skip to content

Instantly share code, notes, and snippets.

@SophieDePaula
Created October 7, 2018 23:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SophieDePaula/15f7bd0353c16c646ceaef6b4788a24d to your computer and use it in GitHub Desktop.
Save SophieDePaula/15f7bd0353c16c646ceaef6b4788a24d to your computer and use it in GitHub Desktop.
curl "https://api.GitHub.com/repos/<GitHubUserName>/<REPO_NAME>/statuses/$GIT_COMMIT?access_token=<YOUR_GITHUB_TOKEN>" \
-H "Content-Type: application/json" \
-X POST \
-d "{\"state\": \"failure\",\"context\": \"continuous-integration/jenkins\", \"description\": \"Jenkins\", \"target_url\": \"<YOUR_JENKINS_URL>/job/<JenkinsProjectName>/$BUILD_NUMBER/console\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment