mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 00:25:50 +00:00
run stage only scp
This commit is contained in:
parent
0d2ced37b6
commit
15119b2d30
1 changed files with 5 additions and 2 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -91,8 +91,11 @@ pipeline {
|
|||
stage('run') {
|
||||
steps {
|
||||
script {
|
||||
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.samples&maven.artifactId=spring-petclinic&maven.extension=jar" -H "accept: application/json"'
|
||||
sh 'java -jar spring-petclinic-2.4.2.jar'
|
||||
sshagent(credentials: 'e6072e08-87bc-481e-9e4a-55d506546356') {
|
||||
sh 'scp http://localhost: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.samples&maven.artifactId=spring-petclinic&maven.extension=jar" -H "accept: application/json"'
|
||||
sh 'java -jar spring-petclinic-2.4.2.jar'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue