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
48f0fd6687
commit
2b3624f574
1 changed files with 9 additions and 1 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -27,7 +27,15 @@ pipeline{
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
echo "========executing docker build========"
|
echo "========executing docker build========"
|
||||||
sh 'docker build -t amar1doc/petclinic:latest .'
|
sh 'docker build -t amar1doc/petclinic:latest .'
|
||||||
|
|
||||||
|
// with dockerhub creds to push to registory
|
||||||
|
// script{
|
||||||
|
// withDockerRegistry(credentialsId: 'dockerhub') {
|
||||||
|
// sh 'docker build -t amar1doc/petclinic:${BUILD_NUMBER} .'
|
||||||
|
// sh 'docker push amar1doc/petclinic:${BUILD_NUMBER}'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue