mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
4bb827676d
commit
4b31d59b1f
1 changed files with 15 additions and 3 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -7,5 +7,17 @@ pipeline {
|
||||||
sh './mvnw package
|
sh './mvnw package
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Build Docker Image') {
|
||||||
|
when {
|
||||||
|
branch 'main'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
app = docker.build("sprientera/pets")
|
||||||
|
app.inside {
|
||||||
|
sh 'echo $(curl localhost:80)'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue