Browse Source

jenkins: propagate cause of failure to GitHub commit status

pr/spi.typo
Cenk Gündoğan 6 years ago
parent
commit
24c7b0861f
  1. 2
      Jenkinsfile

2
Jenkinsfile vendored

@ -213,7 +213,7 @@ def abortPreviousBuilds()
def abortOnError(msg)
{
if ((currentBuild.result != null) && (currentBuild.result == 'FAILURE')) {
githubNotify context: 'Jenkins', description: "${currentBuild.result}", status: 'FAILURE', targetUrl: "${env.BUILD_URL}artifact"
githubNotify context: 'Jenkins', description: msg, status: 'FAILURE', targetUrl: "${env.BUILD_URL}artifact"
error msg
}
}

Loading…
Cancel
Save