diff options
-rw-r--r-- | jjb/global-templates-java.yaml | 2 | ||||
-rw-r--r-- | jjb/include-docker-push.sh | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index 3560ec490..0def78b51 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -708,7 +708,7 @@ - docker.pull.registry=nexus3.openecomp.org:10001 - docker.push.registry=nexus3.openecomp.org:10003 - - shell: !include-raw: include-docker-push.sh + - shell: !include-raw-escape: include-docker-push.sh - job-template: # Job template for Java daily release jobs diff --git a/jjb/include-docker-push.sh b/jjb/include-docker-push.sh index ec78d9ab1..929b6a25f 100644 --- a/jjb/include-docker-push.sh +++ b/jjb/include-docker-push.sh @@ -6,5 +6,7 @@ SEARCH="aai-service"; if [[ $PROJECT =~ $SEARCH ]] ; then docker push $DOCKER_REPOSITORY/openecomp/ajsc-aai:latest; else - docker push $DOCKER_REPOSITORY/openecomp/model-loader:latest; + # Cut the prefix aai/ in example aai/model-loader + DOCKER_REPO_NAME=$(echo ${PROJECT} | cut -d"/" -f2-); + docker push $DOCKER_REPOSITORY/openecomp/${DOCKER_REPO_NAME}:latest; fi |