Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Master #73

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
** Variables.
*/
def serie = '22.04'
def serie = '22.10'
def maintenanceBranch = "${serie}.x"
def qaBranch = "dev-${serie}.x"

Expand Down Expand Up @@ -87,7 +87,7 @@ stage('RPM/DEB packaging') {
dir('centreon-ha') {
checkout scm
}
sh 'docker run -i --entrypoint "/src/centreon-ha/ci/scripts/centreon-ha-package.sh" -w "/src" -v "$PWD:/src" -e "DISTRIB=Debian11" -e "VERSION=$VERSION" -e "RELEASE=$RELEASE" registry.centreon.com/centreon-debian11-dependencies:22.04'
sh 'docker run -i --entrypoint "/src/centreon-ha/ci/scripts/centreon-ha-package.sh" -w "/src" -v "$PWD:/src" -e "DISTRIB=bullseye" -e "VERSION=$VERSION" -e "RELEASE=$RELEASE" registry.centreon.com/centreon-debian11-dependencies:22.10'
stash name: 'Debian11', includes: '*.deb'
archiveArtifacts artifacts: "*"
}
Expand All @@ -109,7 +109,7 @@ if ((env.BUILD == 'RELEASE') || (env.BUILD == 'CI') || (env.BUILD == 'QA') ) {
unstash "Debian11"
sh '''for i in $(echo *.deb)
do
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H "Content-Type: multipart/form-data" --data-binary "@./$i" https://apt.centreon.com/repository/22.04-$REPO/
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H "Content-Type: multipart/form-data" --data-binary "@./$i" https://apt.centreon.com/repository/22.10-$REPO/
done
'''
}
Expand Down
1 change: 1 addition & 0 deletions ci/debian/centreon-ha-common.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/var/log/centreon-ha
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if [ "$1" = "configure" ] ; then
if [ "$(getent passwd centreon)" ]; then
chown -vR centreon:centreon /var/log/centreon-ha
chmod -vR 0755 /var/log/centreon-ha
chmod gu+x /usr/lib/ocf/resource.d/heartbeat/mariadb-centreon
fi

fi
Expand Down
1 change: 0 additions & 1 deletion ci/debian/centreon-ha.dirs

This file was deleted.