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

Commit d9d6f4d

Browse files
zguennoune02tuntoja
authored andcommitted
enh(ci): Fix reference build used for issue recording (#10207)
* use maintenance branch as ref branch for issue recording * remove the discoverReferenceBuild function
1 parent 67b83bc commit d9d6f4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Jenkinsfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
77
def serie = '21.04'
88
def maintenanceBranch = "${serie}.x"
99
def qaBranch = "dev-${serie}.x"
10-
env.REF_BRANCH = 'master'
10+
env.REF_BRANCH = "${maintenanceBranch}"
1111
env.PROJECT='centreon-web'
1212
if (env.BRANCH_NAME.startsWith('release-')) {
1313
env.BUILD = 'RELEASE'
@@ -114,20 +114,22 @@ try {
114114
])
115115
}
116116

117-
discoverGitReferenceBuild()
118117
recordIssues(
118+
referenceJobName: "centreon-web/${env.REF_BRANCH}",
119119
enabledForFailure: true,
120120
qualityGates: [[threshold: 1, type: 'DELTA', unstable: false]],
121121
tool: phpCodeSniffer(id: 'phpcs', name: 'phpcs', pattern: 'codestyle-be.xml'),
122122
trendChartType: 'NONE'
123123
)
124124
recordIssues(
125+
referenceJobName: "centreon-web/${env.REF_BRANCH}",
125126
enabledForFailure: true,
126127
qualityGates: [[threshold: 1, type: 'DELTA', unstable: false]],
127128
tool: phpStan(id: 'phpstan', name: 'phpstan', pattern: 'phpstan.xml'),
128129
trendChartType: 'NONE'
129130
)
130131
recordIssues(
132+
referenceJobName: "centreon-web/${env.REF_BRANCH}",
131133
enabledForFailure: true,
132134
failOnError: true,
133135
qualityGates: [[threshold: 1, type: 'NEW', unstable: false]],

0 commit comments

Comments
 (0)