This commit is contained in:
Zakaria Guennoune 2022-04-14 13:05:07 +02:00
parent 141b03ce0f
commit 87cb3f847e
1 changed files with 6 additions and 1 deletions

View File

@ -59,8 +59,13 @@ try {
withCredentials([usernamePassword(credentialsId: 'nexus-credentials', passwordVariable: 'NEXUS_PASSWORD', usernameVariable: 'NEXUS_USERNAME')]) {
checkout scm
unstash "Debian11"
sh 'ls -lart'
//sh "./ci/scripts/vmware-deliver-deb-package.sh $NEXUS_USERNAME $NEXUS_PASSWORD"
sh 'curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H "Content-Type: multipart/form-data" --data-binary "@./*.deb" https://apt.centreon.com/repository/22.04/'
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/
done
'''
}
}
}