mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
Update Jenkinsfile
This commit is contained in:
parent
3460067433
commit
d91bec2ac1
6
centreon-plugins/Jenkinsfile
vendored
6
centreon-plugins/Jenkinsfile
vendored
@ -2,10 +2,10 @@
|
|||||||
env.REF_BRANCH = 'master'
|
env.REF_BRANCH = 'master'
|
||||||
if ((env.BRANCH_NAME == env.REF_BRANCH)) {
|
if ((env.BRANCH_NAME == env.REF_BRANCH)) {
|
||||||
env.BUILD = 'REFERENCE'
|
env.BUILD = 'REFERENCE'
|
||||||
env.REPO = 'stable'
|
env.REPO = '22.04'
|
||||||
} else {
|
} else {
|
||||||
env.BUILD = 'CI'
|
env.BUILD = 'CI'
|
||||||
env.REPO = 'unstable'
|
env.REPO = '22.04-unstable'
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Source') {
|
stage('Source') {
|
||||||
@ -72,7 +72,7 @@ stage('RPM Delivery') {
|
|||||||
unstash "Debian11"
|
unstash "Debian11"
|
||||||
sh '''for i in $(echo *.deb)
|
sh '''for i in $(echo *.deb)
|
||||||
do
|
do
|
||||||
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H "Content-Type: multipart/form-data" --data-binary "@./$i" https://apt.centreon.com/repository/22.04-$REPO/
|
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD -H "Content-Type: multipart/form-data" --data-binary "@./$i" https://apt.centreon.com/repository/$REPO/
|
||||||
done
|
done
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user