mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
changed run stage
This commit is contained in:
parent
82c7247d8a
commit
9919fee5fc
1 changed files with 14 additions and 8 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -18,16 +18,22 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Run') {
|
stage('Run') {
|
||||||
agent {
|
steps {
|
||||||
dockerfile {
|
script {
|
||||||
filename 'Dockerfile.run'
|
def runtimeImage = docker.build('petclinic', '-f Dockerfile.run')
|
||||||
dir '.'
|
runtimeImage.run();
|
||||||
additionalBuildArgs '-t hllvc/spring-petclinic:latest'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
/* agent { */
|
||||||
sh 'docker-compose up'
|
/* dockerfile { */
|
||||||
}
|
/* filename 'Dockerfile.run' */
|
||||||
|
/* dir '.' */
|
||||||
|
/* additionalBuildArgs '-t hllvc/spring-petclinic:latest' */
|
||||||
|
/* } */
|
||||||
|
/* } */
|
||||||
|
/* steps { */
|
||||||
|
/* sh 'docker-compose up' */
|
||||||
|
/* } */
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue