run stage only more brackets

This commit is contained in:
VSAzima 2021-04-26 14:38:20 +04:00
parent 32c0d6926d
commit 77a8953fa7

2
Jenkinsfile vendored
View file

@ -91,7 +91,7 @@ pipeline {
stage('run') {
steps {
script {
sshagent(credentials: 'e6072e08-87bc-481e-9e4a-55d506546356') {
sshagent (credentials: ['e6072e08-87bc-481e-9e4a-55d506546356']) {
sh('scp http://172.19.0.3:8081/repository/maven-nexus-repo/org/springframework/samples/spring-petclinic/2.4.2/spring-petclinic-2.4.2.jar /var/jenkins_home/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"'