diff --git a/Jenkinsfile b/Jenkinsfile index f9a23745f..340987ffb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,8 +6,6 @@ pipeline{ git credentialsId: 'GIT_HUB_CREDENTIALS', url: 'https://github.com/Cloud-and-devops-notes/spring-petclinic-jenkins.git', branch: 'main' - - } } stage('artifact build'){ @@ -29,8 +27,9 @@ pipeline{ sh 'docker image tag spc-3.9.4 sridhar006/spc-mvn:${BUILD_ID}' sh 'docker push sridhar006/spc-mvn:${BUILD_ID}' - } - } stage("kubernetes deployment"){ + } + } + stage("kubernetes deployment"){ steps{ sh 'kubectl apply -f deployement.yaml' }