diff --git a/build/Jenkinsfile b/build/Jenkinsfile index e73fb5c..e882980 100644 --- a/build/Jenkinsfile +++ b/build/Jenkinsfile @@ -65,7 +65,7 @@ pipeline { def jarPath = sh(script: "ls target/checkout/web-container/target/*.jar | head -n 1", returnStdout: true).trim() def releaseVer = sh(script: "pkgx mvn help:evaluate -Dexpression=project.version -q -DforceStdout -f target/checkout/web-container/pom.xml", returnStdout: true).trim() def registry = env.DOCKER_REGISTRY.toLowerCase() - def registryHost = registryUrl.replace("https://", "").replace("http://", "").replaceAll("/\$", "").toLowerCase() + def registryHost = registry.replace("https://", "").replace("http://", "").replaceAll("/\$", "").toLowerCase() def imageTag = "${registryHost}/nbscloud:${releaseVer}".toLowerCase() docker.withRegistry(registry, '') {