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
diff --git a/jjb/repos/tost-onos.yaml b/jjb/repos/tost-onos.yaml
index 453d1ee..bb37927 100644
--- a/jjb/repos/tost-onos.yaml
+++ b/jjb/repos/tost-onos.yaml
@@ -30,7 +30,8 @@
name: 'publish-tost-onos-jobs'
jobs:
- 'private-docker-publish':
- docker-repo: 'onosproject'
+ docker-repo: 'tost'
+ docker-registry: 'registry.aetherproject.org'
maintainers: 'charles@opennetworking.org, pier@opennetworking.org'
build-timeout: 30
extraEnvironmentVars: |