curl variables

This commit is contained in:
VSAzima 2021-04-26 16:39:24 +04:00
parent bbd3a3d6c2
commit 985890245a

2
Jenkinsfile vendored
View file

@ -93,7 +93,7 @@ pipeline {
script {
withCredentials([usernameColonPassword(credentialsId: 'nexus-deployment-user', variable: 'DEPLOYMENT')]) {
sh '''
curl -u "$DEPLOYMENT" http://172.19.0.3:8081/repository/maven-nexus-repo/org/springframework/samples/spring-petclinic/2.4.2/spring-petclinic-2.4.2.jar >output
curl -u "$DEPLOYMENT" http://${NEXUS_URL}/repository/${NEXUS_REPOSITORY}/org/springframework/samples/spring-petclinic/2.4.2/spring-petclinic-2.4.2.jar >output
nohup java -jar spring-petclinic-2.4.2.jar --server.port=8083>> server.log 2>&1&
'''
}