Merge "Add maven-exec parameter to all job templates"
[ci-management.git] / jjb / include-docker-push.sh
1 #!/bin/bash
2
3 DOCKER_REPOSITORY="nexus3.openecomp.org:10003"
4 SEARCH="aai-service";
5
6 if [[ $PROJECT =~ $SEARCH ]] ; then
7     docker push $DOCKER_REPOSITORY/openecomp/ajsc-aai:latest;
8 else
9     # Cut the prefix aai/ in example aai/model-loader
10     DOCKER_REPO_NAME=$(echo ${PROJECT} | cut -d"/" -f2-);
11     docker push $DOCKER_REPOSITORY/openecomp/${DOCKER_REPO_NAME}:latest;
12 fi