utils.groovy 630 B

12345678910111213
  1. def reportGitHubStatus(commitHash, context, backref, statusResult, statusResultMessage) {
  2. node {
  3. step([
  4. $class: 'GitHubCommitStatusSetter',
  5. commitShaSource: [$class: "ManuallyEnteredShaSource", sha: commitHash],
  6. contextSource: [$class: 'ManuallyEnteredCommitContextSource', context: context],
  7. statusBackrefSource: [$class: 'ManuallyEnteredBackrefSource', backref: backref],
  8. statusResultSource: [$class: 'ConditionalStatusResultSource', results: [[$class: 'AnyBuildResult', state: statusResult, message: statusResultMessage]]]
  9. ])
  10. }
  11. }
  12. return this