From 9239ed1e82f0e62f5a0b5d01886533a627a71356 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Fri, 26 Jun 2020 16:15:55 +0100 Subject: [PATCH] [26.06.20] Pipeline Changes --- configuration/pipelines/build.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 89dadf2..d34e6e5 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -68,9 +68,9 @@ try { withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) { // withDockerRegistry([credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]) { - def image = docker.build("${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}") + def image = docker.build("${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}") // image.push() - def latest = docker.build("${env.APPLICATION_NAME}:latest") + def latest = docker.build("${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:latest") // latest.push() // } sh "docker tag ${image} ${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}"