Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
enh(ci): Fix reference build used for issue recording (#10207)
Browse files Browse the repository at this point in the history
* use maintenance branch as ref branch for issue recording

* remove the discoverReferenceBuild function
  • Loading branch information
zguennoune02 authored and tuntoja committed Sep 29, 2021
1 parent 67b83bc commit d9d6f4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
def serie = '21.04'
def maintenanceBranch = "${serie}.x"
def qaBranch = "dev-${serie}.x"
env.REF_BRANCH = 'master'
env.REF_BRANCH = "${maintenanceBranch}"
env.PROJECT='centreon-web'
if (env.BRANCH_NAME.startsWith('release-')) {
env.BUILD = 'RELEASE'
Expand Down Expand Up @@ -114,20 +114,22 @@ try {
])
}

discoverGitReferenceBuild()
recordIssues(
referenceJobName: "centreon-web/${env.REF_BRANCH}",
enabledForFailure: true,
qualityGates: [[threshold: 1, type: 'DELTA', unstable: false]],
tool: phpCodeSniffer(id: 'phpcs', name: 'phpcs', pattern: 'codestyle-be.xml'),
trendChartType: 'NONE'
)
recordIssues(
referenceJobName: "centreon-web/${env.REF_BRANCH}",
enabledForFailure: true,
qualityGates: [[threshold: 1, type: 'DELTA', unstable: false]],
tool: phpStan(id: 'phpstan', name: 'phpstan', pattern: 'phpstan.xml'),
trendChartType: 'NONE'
)
recordIssues(
referenceJobName: "centreon-web/${env.REF_BRANCH}",
enabledForFailure: true,
failOnError: true,
qualityGates: [[threshold: 1, type: 'NEW', unstable: false]],
Expand Down

0 comments on commit d9d6f4d

Please sign in to comment.