diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 6646b0d75..0df5d2759 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -7,15 +7,15 @@ pipeline { stages{ stage('vcs') { - steps{ + steps { git url: 'https://github.com/shaiksohail11/spring-petclinic.git', branch: 'main' } } stage('Build') { - steps{ - sh 'docker image build -t shaik1128/spring-petclinic:3.0 .', + steps { + sh 'docker image build -t shaik1128/spring-petclinic:3.0 .' sh 'docker push shaik1128/spring-petclinic:3.0' } }