Update Jenkinsfile

This commit is contained in:
A-hash-bit 2023-09-21 15:46:19 +05:30 committed by GitHub
parent 48f0fd6687
commit 2b3624f574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
Jenkinsfile vendored
View file

@ -27,7 +27,15 @@ pipeline{
agent any
steps {
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}'
// }
// }
}
}
}