diff --git a/Jenkinsfile b/Jenkinsfile index af7967478d0..a90ce5b9c27 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' @@ -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]],