Skip to content

Commit

Permalink
core(version): prepare the 22.10 version (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
adr-mo committed Jun 7, 2022
1 parent 7ea08c8 commit 0ae99e3
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 98 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ endif ()

# Version.
set(COLLECT_MAJOR 22)
set(COLLECT_MINOR 04)
set(COLLECT_PATCH 1)
set(COLLECT_MINOR 10)
set(COLLECT_PATCH 0)
set(COLLECT_VERSION "${COLLECT_MAJOR}.${COLLECT_MINOR}.${COLLECT_PATCH}")
add_definitions(-DCENTREON_CONNECTOR_VERSION=\"${COLLECT_VERSION}\")
# add_definitions(-DCENTREON_BROKER_VERSION=\"${COLLECT_VERSION}\")
Expand Down
24 changes: 12 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import org.jenkinsci.plugins.pipeline.modeldefinition.Utils

env.REF_BRANCH = 'master'
env.PROJECT='centreon-collect'
def serie = '22.04'
def maintenanceBranch = "${serie}.x"
def qaBranch = "dev-${serie}.x"
def serie = '22.10'
def maintenanceBranch = "master"
def qaBranch = "develop"
def buildBranch = env.BRANCH_NAME
if (env.CHANGE_BRANCH) {
buildBranch = env.CHANGE_BRANCH
Expand Down Expand Up @@ -49,7 +49,7 @@ stage('Build / Unit tests // Packaging / Signing') {
node("C++") {
dir('centreon-collect-centos7') {
checkout scm
sh 'docker run -i --entrypoint /src/ci/scripts/collect-unit-tests.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-centos7-dependencies:22.04'
sh 'docker run -i --entrypoint /src/ci/scripts/collect-unit-tests.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-centos7-dependencies:22.10'
}
}
},
Expand All @@ -61,9 +61,9 @@ stage('Build / Unit tests // Packaging / Signing') {
withSonarQubeEnv('SonarQubeDev') {
sh 'ci/scripts/collect-sonar-scanner-common.sh "get" "master"'
if (env.CHANGE_ID) {
sh 'docker run -i --entrypoint /src/ci/scripts/collect-sources-analysis.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-centos7-dependencies:22.04 "PR" "$SONAR_AUTH_TOKEN" "$SONAR_HOST_URL" "$VERSION" "$CHANGE_TARGET" "$CHANGE_BRANCH" "$CHANGE_ID"'
sh 'docker run -i --entrypoint /src/ci/scripts/collect-sources-analysis.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-centos7-dependencies:22.10 "PR" "$SONAR_AUTH_TOKEN" "$SONAR_HOST_URL" "$VERSION" "$CHANGE_TARGET" "$CHANGE_BRANCH" "$CHANGE_ID"'
} else {
sh 'docker run -i --entrypoint /src/ci/scripts/collect-sources-analysis.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-centos7-dependencies:22.04 "NotPR" "$SONAR_AUTH_TOKEN" "$SONAR_HOST_URL" "$VERSION" "$BRANCH_NAME"'
sh 'docker run -i --entrypoint /src/ci/scripts/collect-sources-analysis.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-centos7-dependencies:22.10 "NotPR" "$SONAR_AUTH_TOKEN" "$SONAR_HOST_URL" "$VERSION" "$BRANCH_NAME"'
}
sh 'ci/scripts/collect-sonar-scanner-common.sh "set"'
}
Expand All @@ -74,7 +74,7 @@ stage('Build / Unit tests // Packaging / Signing') {
node("C++") {
dir('centreon-collect-centos7') {
checkout scm
sh 'docker run -i --entrypoint /src/ci/scripts/collect-rpm-package.sh -v "$PWD:/src" -e DISTRIB="el7" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-collect-centos7-dependencies:22.04'
sh 'docker run -i --entrypoint /src/ci/scripts/collect-rpm-package.sh -v "$PWD:/src" -e DISTRIB="el7" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-collect-centos7-dependencies:22.10'
sh 'rpmsign --addsign *.rpm'
stash name: 'el7-rpms', includes: '*.rpm'
archiveArtifacts artifacts: "*.rpm"
Expand All @@ -86,7 +86,7 @@ stage('Build / Unit tests // Packaging / Signing') {
node("C++") {
dir('centreon-collect-alma8') {
checkout scm
sh 'docker run -i --entrypoint /src/ci/scripts/collect-rpm-package.sh -v "$PWD:/src" -e DISTRIB="el8" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-collect-alma8-dependencies:22.04'
sh 'docker run -i --entrypoint /src/ci/scripts/collect-rpm-package.sh -v "$PWD:/src" -e DISTRIB="el8" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-collect-alma8-dependencies:22.10'
sh 'rpmsign --addsign *.rpm'
stash name: 'el8-rpms', includes: '*.rpm'
archiveArtifacts artifacts: "*.rpm"
Expand All @@ -98,7 +98,7 @@ stage('Build / Unit tests // Packaging / Signing') {
node("C++") {
dir('centreon-collect-debian10') {
checkout scm
sh 'docker run -i --entrypoint /src/ci/scripts/collect-unit-tests.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-debian10-dependencies:22.04'
sh 'docker run -i --entrypoint /src/ci/scripts/collect-unit-tests.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-debian10-dependencies:22.10'
}
}
},
Expand All @@ -107,7 +107,7 @@ stage('Build / Unit tests // Packaging / Signing') {
dir('centreon-collect') {
checkout scm
}
sh 'docker run -i --entrypoint /src/centreon-collect/ci/scripts/collect-deb-package.sh -v "$PWD:/src" -e DISTRIB="Debian10" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-collect-debian10-dependencies:22.04'
sh 'docker run -i --entrypoint /src/centreon-collect/ci/scripts/collect-deb-package.sh -v "$PWD:/src" -e DISTRIB="Debian10" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-collect-debian10-dependencies:22.10'
stash name: 'Debian10', includes: 'Debian10/*.deb'
archiveArtifacts artifacts: "Debian10/*"
}
Expand All @@ -116,7 +116,7 @@ stage('Build / Unit tests // Packaging / Signing') {
node("C++") {
dir('centreon-collect-debian11') {
checkout scm
sh 'docker run -i --entrypoint /src/ci/scripts/collect-unit-tests.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-debian11-dependencies:22.04'
sh 'docker run -i --entrypoint /src/ci/scripts/collect-unit-tests.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-debian11-dependencies:22.10'
}
}
},
Expand All @@ -125,7 +125,7 @@ stage('Build / Unit tests // Packaging / Signing') {
dir('centreon-collect') {
checkout scm
}
sh 'docker run -i --entrypoint /src/centreon-collect/ci/scripts/collect-deb-package.sh -v "$PWD:/src" -e DISTRIB="bullseye" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-collect-debian11-dependencies:22.04'
sh 'docker run -i --entrypoint /src/centreon-collect/ci/scripts/collect-deb-package.sh -v "$PWD:/src" -e DISTRIB="bullseye" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-collect-debian11-dependencies:22.10'
stash name: 'Debian11', includes: 'bullseye/*.deb'
archiveArtifacts artifacts: "bullseye/*"
}
Expand Down
36 changes: 0 additions & 36 deletions broker/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

16 changes: 8 additions & 8 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ stage('Dependencies containers creation') {
checkout scm
dir ('ci/docker') {
sh 'cp ../../conanfile.txt .'
sh 'docker build --no-cache . -f Dockerfile.collect-centos7-dependencies -t registry.centreon.com/centreon-collect-centos7-dependencies:22.04'
sh 'docker push registry.centreon.com/centreon-collect-centos7-dependencies:22.04'
sh 'docker build --no-cache . -f Dockerfile.collect-centos7-dependencies -t registry.centreon.com/centreon-collect-centos7-dependencies:22.10'
sh 'docker push registry.centreon.com/centreon-collect-centos7-dependencies:22.10'
}
}
}
Expand All @@ -21,8 +21,8 @@ stage('Dependencies containers creation') {
checkout scm
dir ('ci/docker') {
sh 'cp ../../conanfile.txt .'
sh 'docker build --no-cache . -f Dockerfile.collect-debian10-dependencies -t registry.centreon.com/centreon-collect-debian10-dependencies:22.04'
sh 'docker push registry.centreon.com/centreon-collect-debian10-dependencies:22.04'
sh 'docker build --no-cache . -f Dockerfile.collect-debian10-dependencies -t registry.centreon.com/centreon-collect-debian10-dependencies:22.10'
sh 'docker push registry.centreon.com/centreon-collect-debian10-dependencies:22.10'
}
}
}
Expand All @@ -33,8 +33,8 @@ stage('Dependencies containers creation') {
checkout scm
dir ('ci/docker') {
sh 'cp ../../conanfile.txt .'
sh 'docker build --no-cache . -f Dockerfile.collect-debian11-dependencies -t registry.centreon.com/centreon-collect-debian11-dependencies:22.04'
sh 'docker push registry.centreon.com/centreon-collect-debian11-dependencies:22.04'
sh 'docker build --no-cache . -f Dockerfile.collect-debian11-dependencies -t registry.centreon.com/centreon-collect-debian11-dependencies:22.10'
sh 'docker push registry.centreon.com/centreon-collect-debian11-dependencies:22.10'
}
}
}
Expand All @@ -45,8 +45,8 @@ stage('Dependencies containers creation') {
checkout scm
dir ('ci/docker') {
sh 'cp ../../conanfile.txt .'
sh 'docker build --no-cache . -f Dockerfile.collect-alma8-dependencies -t registry.centreon.com/centreon-collect-alma8-dependencies:22.04'
sh 'docker push registry.centreon.com/centreon-collect-alma8-dependencies:22.04'
sh 'docker build --no-cache . -f Dockerfile.collect-alma8-dependencies -t registry.centreon.com/centreon-collect-alma8-dependencies:22.10'
sh 'docker push registry.centreon.com/centreon-collect-alma8-dependencies:22.10'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ci/debian/substvars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
centreon:version=22.04.0
centreon:version=22.10.0
36 changes: 0 additions & 36 deletions engine/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

4 changes: 2 additions & 2 deletions packaging/rpm/centreon-collect.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ License: ASL 2.0
Source: %{name}-%{version}.tar.gz
Source1: centreonengine_integrate_centreon_engine2centreon.sh

%define thismajor 22.04.0
%define nextmajor 22.05.0
%define thismajor 22.10.0
%define nextmajor 22.11.0

Group: Applications/Communications
URL: https://github.com/centreon/centreon-collect.git
Expand Down
2 changes: 1 addition & 1 deletion tests/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pipeline {
agent any
when { anyOf { branch 'master'; branch 'develop' } }
steps {
sh 'docker run -i --entrypoint /src/ci/scripts/collect-test-robot.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-centos7-dependencies:22.04'
sh 'docker run -i --entrypoint /src/ci/scripts/collect-test-robot.sh -v "$PWD:/src" registry.centreon.com/centreon-collect-centos7-dependencies:22.10'
robot outputPath: 'tests', logFileName: 'log.html', outputFileName: 'output.xml', reportFileName: 'report.html', passThreshold: 100, unstableThreshold: 75.0
}
post { always { cleanWs() }}
Expand Down

0 comments on commit 0ae99e3

Please sign in to comment.