From d8abb86904d6b4ac880a6539a70d56d17f442900 Mon Sep 17 00:00:00 2001 From: andyjk15 Date: Fri, 10 Jul 2020 12:13:03 +0100 Subject: [PATCH] [10.07.20] Moved image build to build step rather than being in the Tag Repo step --- configuration/pipelines/build.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 3b254a6..819ad67 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -73,10 +73,6 @@ try { env.APPLICATION_VERSION, env.APPLICATION_LABEL) - } - - stage('Tag Repository') { - withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) { docker.build("${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}") docker.build("${env.APPLICATION_NAME}:latest") @@ -88,6 +84,10 @@ try { sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest" } + } + + stage('Tag Repository') { + withCredentials( [usernamePassword( credentialsId: env.GITHUB_CREDENTIALS_ID,