Update dockerRegistry for TOST jobs
Change-Id: I941a54d604968d2004a30875de8b75a954046c1a
diff --git a/jjb/pipeline/docker-publish.groovy b/jjb/pipeline/docker-publish.groovy
index d0c0e13..0ee38f1 100644
--- a/jjb/pipeline/docker-publish.groovy
+++ b/jjb/pipeline/docker-publish.groovy
@@ -53,7 +53,7 @@
cd "$projectName"
# set registry/repository variables
- export DOCKER_REGISTRY="$dockerRegistry"
+ export DOCKER_REGISTRY="$dockerRegistry/"
export DOCKER_REPOSITORY="$dockerRepo/"
# Build w/branch
@@ -84,7 +84,7 @@
stage('push'){
steps {
script {
- withDockerRegistry([credentialsId: 'docker-artifact-push-credentials']) {
+ withDockerRegistry(credentialsId: 'aether-internal-registry', url: "https://${params.dockerRegistry}") {
sh( script:"""
#!/usr/bin/env bash
set -eu -o pipefail
@@ -93,7 +93,7 @@
cd "$projectName"
# set registry/repository variables
- export DOCKER_REGISTRY="$dockerRegistry"
+ export DOCKER_REGISTRY="$dockerRegistry/"
export DOCKER_REPOSITORY="$dockerRepo/"
# Push w/branch