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') {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile.run'
|
||||
dir '.'
|
||||
additionalBuildArgs '-t hllvc/spring-petclinic:latest'
|
||||
steps {
|
||||
script {
|
||||
def runtimeImage = docker.build('petclinic', '-f Dockerfile.run')
|
||||
runtimeImage.run();
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'docker-compose up'
|
||||
}
|
||||
/* agent { */
|
||||
/* dockerfile { */
|
||||
/* filename 'Dockerfile.run' */
|
||||
/* dir '.' */
|
||||
/* additionalBuildArgs '-t hllvc/spring-petclinic:latest' */
|
||||
/* } */
|
||||
/* } */
|
||||
/* steps { */
|
||||
/* sh 'docker-compose up' */
|
||||
/* } */
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue