From 8ebfea51f952663352a01877b2726cbfe6390ca2 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Fri, 26 Jun 2020 16:22:42 +0100 Subject: [PATCH] [26.06.20] Pipeline Changes --- 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 c81e5e3..c7f9d62 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -68,16 +68,16 @@ try { withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) { // withDockerRegistry([credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]) { - def image = docker.build("${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}") + docker.build("${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}") // image.push() - def latest = docker.build("${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest") + docker.build("${env.APPLICATION_NAME}:latest") // latest.push() // } sh "docker tag ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}" sh "docker tag ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest" - sh "docker push ${env.DOCKER_REPOSITORY}/${image}" - sh "docker push ${env.DOCKER_REPOSITORY}/${latest}" + sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}" + sh "docker push ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest" } withCredentials( [usernamePassword(