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

Commit

Permalink
sorry guys
Browse files Browse the repository at this point in the history
  • Loading branch information
zguennoune02 committed Jun 17, 2022
1 parent cf82ff2 commit 99aaab9
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def backendFiles = [
'Jenkinsfile',
'sonar-project.properties',
'**/*.php',
'www/**/*.js',
'www/include/**/*.js',
'www/class/**/*.js',
'www/lib/**/*.js',
'**/*.sh',
'composer.*',
'symfony.lock',
Expand Down Expand Up @@ -306,7 +308,7 @@ try {
checkout scm
}
sh 'rm -rf *.deb'
sh 'docker run -i --entrypoint /src/centreon/ci/scripts/centreon-deb-package.sh -w "/src" -v "$PWD:/src" -e DISTRIB="bullseye" -e VERSION=$VERSION -e RELEASE=$RELEASE registry.centreon.com/centreon-debian11-dependencies:22.04'
sh 'docker run -i --entrypoint /src/centreon/ci/scripts/centreon-deb-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: "*"
sh 'rm -rf *.deb'
Expand Down Expand Up @@ -345,27 +347,9 @@ try {
])
}

stage("$DELIVERY_STAGE") {
node {
checkoutCentreonBuild()
sh 'rm -rf output'
unstash 'tar-sources'
unstash 'api-doc'
unstash 'rpms-alma8'
unstash 'rpms-centos7'
sh "./centreon-build/jobs/web/${serie}/mon-web-delivery.sh"
withCredentials([usernamePassword(credentialsId: 'nexus-credentials', passwordVariable: 'NEXUS_PASSWORD', usernameVariable: 'NEXUS_USERNAME')]) {
checkout scm
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/
done
'''
}
}
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
error('Delivery stage failure');
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
error("Reports stage failure");
}
}
}

Expand Down Expand Up @@ -464,7 +448,7 @@ try {
}

stage('Acceptance tests') {
if (hasBackendChanges || hasFrontendChanges) {
if (hasBackendChanges) {
def atparallelSteps = [:]
for (x in featureFiles) {
def feature = x
Expand Down

0 comments on commit 99aaab9

Please sign in to comment.