This commit is contained in:
Zakaria Guennoune 2022-04-14 12:17:25 +02:00
parent 78c5eb9a59
commit 897eea6000
2 changed files with 2 additions and 3 deletions

View File

@ -59,7 +59,7 @@ try {
//sh './centreon-build/jobs/vmware/vmware-delivery.sh'
withCredentials([usernamePassword(credentialsId: 'nexus-credentials', passwordVariable: 'NEXUS_PASSWORD', usernameVariable: 'NEXUS_USERNAME')]) {
checkout scm
sh './ci/scripts/vmware-deliver-deb-package.sh $NEXUS_USERNAME $NEXUS_PASSWORD'
sh "./ci/scripts/vmware-deliver-deb-package.sh $NEXUS_USERNAME $NEXUS_PASSWORD"
}
}
}

View File

@ -1,11 +1,10 @@
#!/bin/bash
set -ex
VERSION="$3"
BULLSEYEPACKAGES=`echo *.deb`
for i in $BULLSEYEPACKAGES
do
echo "Sending $i"
curl -u \`$1`:`$2`\ -H "Content-Type: multipart/form-data" --data-binary \"@/$i\" "https://apt.centreon.com/repository/22.04"
curl -u \"$1:$2"\ -H "Content-Type: multipart/form-data" --data-binary \"@/$i\" "https://apt.centreon.com/repository/22.04"
done