From 9603794f91caa9250fb8b1c7a04d6983206626d9 Mon Sep 17 00:00:00 2001 From: Andy Sotheran Date: Sat, 26 Sep 2020 19:14:56 +0100 Subject: [PATCH] [26.09.20] Pipeline changes --- configuration/pipelines/build.groovy | 3 +-- configuration/scripts/deployToKubernetes.sh | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 2899ddf..b68c171 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -32,7 +32,7 @@ try { timestamps { node ("${env.SLAVE_LABEL}") { stage('Initialise') { - checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'Github', url: 'https://github.com/andyjk15/db-gateway.git']]]) + checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'Github', url: env.GIT_REPOSITORY_URL]]]) env.APPLICATION_VERSION = get_application_version() @@ -83,7 +83,6 @@ try { sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}" sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest" } - } stage('Tag Repository') { diff --git a/configuration/scripts/deployToKubernetes.sh b/configuration/scripts/deployToKubernetes.sh index ae18ff2..519f5b3 100755 --- a/configuration/scripts/deployToKubernetes.sh +++ b/configuration/scripts/deployToKubernetes.sh @@ -5,6 +5,4 @@ APPLICATION_NAME=$1 kubectl apply -f configuration/kubernetes/deployment.yaml kubectl apply -f configuration/kubernetes/service.yaml -kubectl get pods - kubectl rollout status deployment/${APPLICATION_NAME} --namespace=production \ No newline at end of file