diff --git a/Jenkinsfile b/Jenkinsfile index 75074c1..b802753 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,15 +2,15 @@ ** Variables. */ def serie = '21.10' -def maintenanceBranch = "${serie}.x" -def qaBranch = "dev-${serie}.x" -env.REF_BRANCH = 'master' +def stableBranch = "${serie}.x" +def devBranch = "dev-${serie}.x" +env.REF_BRANCH = stableBranch env.PROJECT='centreon-awie' if (env.BRANCH_NAME.startsWith('release-')) { env.BUILD = 'RELEASE' -} else if ((env.BRANCH_NAME == env.REF_BRANCH) || (env.BRANCH_NAME == maintenanceBranch)) { +} else if (env.BRANCH_NAME == stableBranch) { env.BUILD = 'REFERENCE' -} else if ((env.BRANCH_NAME == 'develop') || (env.BRANCH_NAME == qaBranch)) { +} else if (env.BRANCH_NAME == devBranch) { env.BUILD = 'QA' } else { env.BUILD = 'CI'