Skip to content

Instantly share code, notes, and snippets.

@mllrjb
Created October 13, 2016 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mllrjb/d9b0ad8b4587b097790a4e5c0c3ef4f1 to your computer and use it in GitHub Desktop.
Save mllrjb/d9b0ad8b4587b097790a4e5c0c3ef4f1 to your computer and use it in GitHub Desktop.
Jenkinsfile Github Commit Status Example
#!groovy
step([$class: 'GitHubCommitStatusSetter',
contextSource: [$class: 'ManuallyEnteredCommitContextSource', context: 'preflight-build'],
statusResultSource: [$class: 'ConditionalStatusResultSource',
results: [[$class: 'AnyBuildResult', message: 'Preflight build successful', state: 'SUCCESS']]]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment