mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45: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") {
|
||||
steps {
|
||||
script{
|
||||
app = docker.build("surtexx/mr:${GIT_COMMIT}", "-f Dockerfile1 .")
|
||||
app = docker.build("surtexx/mr:${GIT_COMMIT[0..7]}", "-f Dockerfile1 .")
|
||||
app.inside{
|
||||
sh 'echo $(wget localhost:8080)'
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ pipeline{
|
|||
steps {
|
||||
script{
|
||||
docker.withRegistry('https://registry.hub.docker.com', 'docker_hub_login') {
|
||||
app.push(${GIT_COMMIT})
|
||||
app.push("${GIT_COMMIT[0..7]})
|
||||
app.push("latest")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue