mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
Run curl in // to save time as sonar doesn't accept multiple uploads (#3833)
This commit is contained in:
parent
755e033ebc
commit
d94b3bf2ba
11
centreon-plugins/Jenkinsfile
vendored
11
centreon-plugins/Jenkinsfile
vendored
@ -67,15 +67,8 @@ stage('RPM Delivery') {
|
|||||||
withCredentials([usernamePassword(credentialsId: 'nexus-credentials', passwordVariable: 'NEXUS_PASSWORD', usernameVariable: 'NEXUS_USERNAME')]) {
|
withCredentials([usernamePassword(credentialsId: 'nexus-credentials', passwordVariable: 'NEXUS_PASSWORD', usernameVariable: 'NEXUS_USERNAME')]) {
|
||||||
checkout scm
|
checkout scm
|
||||||
unstash "Debian11"
|
unstash "Debian11"
|
||||||
sh '''for package in $(echo *.deb)
|
sh '''
|
||||||
do
|
find -name "*.deb" -print0 | xargs -0 -t -I % -P 8 curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H "Content-Type: multipart/form-data" --data-binary "@%" https://apt.centreon.com/repository/$REPO/
|
||||||
if [ -z "$FILELIST" ]
|
|
||||||
then
|
|
||||||
FILELIST=$package
|
|
||||||
fi
|
|
||||||
FILELIST=${FILELIST},$package
|
|
||||||
done
|
|
||||||
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H \"Content-Type: multipart/form-data\" -T \"{$FILELIST}\" https://apt.centreon.com/repository/$REPO/
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user