Commit 56dcf70e authored by Kevin Duret's avatar Kevin Duret Committed by Thomas Untoja
Browse files

chore(ci): use discoverGitReferenceBuild instead of reference build (#9385)

parent 8bb9a92a
......@@ -55,8 +55,11 @@ try {
unstash 'tar-sources'
sh "./centreon-build/jobs/web/${serie}/mon-web-unittest.sh centos7"
junit 'ut-be.xml,ut-fe.xml'
if (currentBuild.result == 'UNSTABLE')
currentBuild.result = 'FAILURE'
discoverGitReferenceBuild()
recordIssues(
enabledForFailure: true,
aggregatingResults: true,
......@@ -64,15 +67,13 @@ try {
checkStyle(pattern: 'codestyle-be.xml'),
checkStyle(pattern: 'phpstan.xml')
],
referenceJobName: 'centreon-web/master',
trendChartType: 'NONE',
trendChartType: 'NONE'
)
recordIssues(
enabledForFailure: true,
failOnError: true,
tools: [esLint(pattern: 'codestyle-fe.xml')],
referenceJobName: 'centreon-web/master',
trendChartType: 'NONE',
trendChartType: 'NONE'
)
if (env.CHANGE_ID) { // pull request to comment with coding style issues
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment