Meridio: Fix unstable job due to github commit status 17/15417/1
authorLionel Jouin <lionel.jouin@est.tech>
Mon, 3 Oct 2022 07:06:34 +0000 (09:06 +0200)
committerLionel Jouin <lionel.jouin@est.tech>
Mon, 3 Oct 2022 07:06:34 +0000 (09:06 +0200)
- The errors from GithubCommitStatusSetter are now ignored

Change-Id: I82f7f90bbd483516a4b93e5fdbb4f773dd0132f5

jjb/nsm/Jenkinsfile

index 4746dc9edfa300c7176e172237685be916029e5a..fced230bac7e20d268f0d6dbd725f89c0c596a85 100644 (file)
@@ -265,7 +265,7 @@ def SetBuildStatus(String message, String context, String state) {
         reposSource: [$class: 'ManuallyEnteredRepositorySource', url: 'https://github.com/Nordix/Meridio'],
         commitShaSource: [$class: 'ManuallyEnteredShaSource', sha: GetCommitSha()],
         contextSource: [$class: 'ManuallyEnteredCommitContextSource', context: context],
-        errorHandlers: [[$class: 'ChangingBuildStatusErrorHandler', result: 'UNSTABLE']],
+        errorHandlers: [[$class: 'ShallowAnyErrorHandler']], // Prevent GitHubCommitStatusSetter to set the job status to unstable
         statusResultSource: [ $class: 'ConditionalStatusResultSource', results: [[$class: 'AnyBuildResult', message: message, state: state]] ]
   ])
 }