From: Lionel Jouin Date: Mon, 3 Oct 2022 07:06:34 +0000 (+0200) Subject: Meridio: Fix unstable job due to github commit status X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=408b6c4543a5a926929fe3b6959b339deeca4b3e;p=infra%2Fcicd.git Meridio: Fix unstable job due to github commit status - The errors from GithubCommitStatusSetter are now ignored Change-Id: I82f7f90bbd483516a4b93e5fdbb4f773dd0132f5 --- diff --git a/jjb/nsm/Jenkinsfile b/jjb/nsm/Jenkinsfile index 4746dc9ed..fced230ba 100644 --- a/jjb/nsm/Jenkinsfile +++ b/jjb/nsm/Jenkinsfile @@ -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]] ] ]) }