From 985890245aeb1bd7c1acad7c4ccb1f23522fad77 Mon Sep 17 00:00:00 2001 From: VSAzima Date: Mon, 26 Apr 2021 16:39:24 +0400 Subject: [PATCH] curl variables --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cdb8b95ec..027455f8e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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& ''' }