From c764125836367f6c7ac2a7f3c3e1840903b5cabd Mon Sep 17 00:00:00 2001 From: VSAzima Date: Mon, 26 Apr 2021 13:40:49 +0400 Subject: [PATCH] run stage only curl --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b86975ab8..f124558da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -91,7 +91,7 @@ pipeline { stage('run') { steps { script { - sh 'wget http://172.19.0.3:8081/repository/maven-nexus-repo/org/springframework/samples/spring-petclinic/2.4.2/spring-petclinic-2.4.2.jar' + sh 'curl -L -X GET "http://172.19.0.3:8081/service/rest/v1/search/assets/download?sort=version&repository=maven-nexus-repo&maven.groupId=org.springframework.boot&maven.artifactId=spring-petclinic&maven.extension=jar" -H "accept: application/json"' sh 'java -jar spring-petclinic-2.4.2.jar' } }