+nexus app deploy

This commit is contained in:
kirill.labutin 2026-08-14 18:30:55 +03:00
parent 4128e626f3
commit 5a556d9b00
1 changed files with 20 additions and 0 deletions

20
Jenkinsfile vendored
View File

@ -77,6 +77,22 @@ pipeline {
}
}
stage('Upload app to Nexus') {
steps {
script {
withCredentials([usernamePassword(credentialsId: 'nexus-credentials',
usernameVariable: 'NEXUS_USER',
passwordVariable: 'NEXUS_PASSWORD')]) {
sh """
curl -v -u ${NEXUS_USER}:${NEXUS_PASSWORD} \
--upload-file launcher/target/${VERSION}.pfapp \
http://172.16.0.59:8081/repository/object-storage/apps/${VERSION}.pfapp
"""
}
}
}
}
stage('Deploy') {
steps {
script {
@ -88,6 +104,10 @@ pipeline {
echo "TODO: deploy ${VERSION}.pfapp to repository (not implemented yet)"
}
}
}
}