mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
52c451ff49
commit
40771c0005
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -12,7 +12,7 @@ pipeline{
|
||||||
stage ("Build Docker Image") {
|
stage ("Build Docker Image") {
|
||||||
steps {
|
steps {
|
||||||
script{
|
script{
|
||||||
app = docker.build("surtexx/mr:${GIT_COMMIT}", "-f Dockerfile1 .")
|
app = docker.build("surtexx/mr:${GIT_COMMIT[0..7]}", "-f Dockerfile1 .")
|
||||||
app.inside{
|
app.inside{
|
||||||
sh 'echo $(wget localhost:8080)'
|
sh 'echo $(wget localhost:8080)'
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ pipeline{
|
||||||
steps {
|
steps {
|
||||||
script{
|
script{
|
||||||
docker.withRegistry('https://registry.hub.docker.com', 'docker_hub_login') {
|
docker.withRegistry('https://registry.hub.docker.com', 'docker_hub_login') {
|
||||||
app.push(${GIT_COMMIT})
|
app.push("${GIT_COMMIT[0..7]})
|
||||||
app.push("latest")
|
app.push("latest")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue