+nexus app deploy
This commit is contained in:
parent
4128e626f3
commit
5a556d9b00
|
|
@ -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)"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue