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

enh(ci): manage master as canary #10324

Merged
merged 1 commit into from
Oct 19, 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
26 changes: 3 additions & 23 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ try {
}
}

if ((env.BUILD == 'CI')) {
if ((env.BUILD == 'CI') || (env.BUILD == "REFERENCE")) {
stage('Delivery to canary') {
node {
checkoutCentreonBuild()
Expand Down Expand Up @@ -369,7 +369,7 @@ try {
}
}

if ((env.BUILD == 'CI')) {
if ((env.BUILD == 'CI') || (env.BUILD == 'REFERENCE')) {
stage('Docker packaging with canary rpms') {
def parallelSteps = [:]
def osBuilds = isStableBuild() ? ['centos7', 'centos8'] : ['centos7']
Expand Down Expand Up @@ -429,27 +429,7 @@ try {
}
}

if ((env.BUILD == 'REFERENCE')) {
stage('Docker packaging with tagging image as latest') {
def parallelSteps = [:]
def osBuilds = isStableBuild() ? ['centos7', 'centos8'] : ['centos7']
for (x in osBuilds) {
def osBuild = x
parallelSteps[osBuild] = {
node {
checkoutCentreonBuild()
sh "./centreon-build/jobs/web/${serie}/mon-web-bundle.sh ${osBuild}"
}
}
}
parallel parallelSteps
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
error('Bundle stage failure.');
}
}
}

if ((env.BUILD == 'QA') || (env.BUILD == 'CI')) {
if ((env.BUILD == 'QA') || (env.BUILD == 'CI') || (env.BUILD == 'REFERENCE')) {
stage('API // E2E') {
parallel 'API Tests': {
if (hasBackendChanges) {
Expand Down