From 8c70115689ab6c586050b45def8b3a3c77987933 Mon Sep 17 00:00:00 2001 From: andyjk15 Date: Wed, 19 Feb 2020 17:34:39 +0000 Subject: [PATCH] [19.02.20] Switch tag and deploy back, AGAIN --- configuration/pipelines/build.groovy | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 2a62611..1dd21f5 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -71,15 +71,6 @@ try { } - stage('Deploy') { - sh "kubectl apply -f configuration/kubernetes/deployment.yaml" - sh "kubectl apply -f configuration/kubernetes/service.yaml" - - sh "kubectl get pods" - - sh "kubectl rollout status deployment/${env.APPLICATION_NAME}" - } - stage('Tag Repository') { withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) { @@ -101,6 +92,15 @@ try { sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@${env.GIT_REPOSITORY_PATH} ${env.APPLICATION_VERSION}" } } + + stage('Deploy') { + sh "kubectl apply -f configuration/kubernetes/deployment.yaml" + sh "kubectl apply -f configuration/kubernetes/service.yaml" + + sh "kubectl get pods" + + sh "kubectl rollout status deployment/${env.APPLICATION_NAME}" + } } } } catch ( exception ) {