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

enh(ci): Fix reference build used for issue recording #10207

Merged
merged 2 commits into from
Sep 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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