This commit is contained in:
Zakaria Guennoune 2022-04-14 12:58:51 +02:00
parent e617a7c59d
commit 141b03ce0f
1 changed files with 2 additions and 3 deletions

View File

@ -53,15 +53,14 @@ try {
stage('Delivery') {
node {
sh 'setup_centreon_build.sh'
unstash "Debian11"
unstash "rpms-centos7"
unstash "rpms-alma8"
//sh './centreon-build/jobs/vmware/vmware-delivery.sh'
withCredentials([usernamePassword(credentialsId: 'nexus-credentials', passwordVariable: 'NEXUS_PASSWORD', usernameVariable: 'NEXUS_USERNAME')]) {
checkout scm
unstash "Debian11"
//sh "./ci/scripts/vmware-deliver-deb-package.sh $NEXUS_USERNAME $NEXUS_PASSWORD"
sh 'BULLSEYEPACKAGES=`echo ../*.deb`'
sh 'curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H "Content-Type: multipart/form-data" --data-binary "@./$BULLSEYEPACKAGES" https://apt.centreon.com/repository/22.04/'
sh 'curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H "Content-Type: multipart/form-data" --data-binary "@./*.deb" https://apt.centreon.com/repository/22.04/'
}
}
}