mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 00:45:50 +00:00
curl deployment
This commit is contained in:
parent
422fb34ce1
commit
bbd3a3d6c2
1 changed files with 6 additions and 5 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -91,11 +91,12 @@ pipeline {
|
||||||
stage('run') {
|
stage('run') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sshagent (credentials: ['e6072e08-87bc-481e-9e4a-55d506546356']) {
|
withCredentials([usernameColonPassword(credentialsId: 'nexus-deployment-user', variable: 'DEPLOYMENT')]) {
|
||||||
sh('scp 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 -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
|
||||||
// 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"'
|
nohup java -jar spring-petclinic-2.4.2.jar --server.port=8083>> server.log 2>&1&
|
||||||
sh 'java -jar spring-petclinic-2.4.2.jar'
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue