Fix project environment 25/50725/3
authorVictor Morales <victor.morales@intel.com>
Wed, 6 Jun 2018 16:00:44 +0000 (09:00 -0700)
committerVictor Morales <victor.morales@intel.com>
Tue, 12 Jun 2018 14:34:13 +0000 (07:34 -0700)
The PROJECT environment seems to be provided by Jenkins job, as
result that the default "openstack" value is used during the creation
of the image. This behaviour causes different names. This change
fixes the default value for the PROJECT enviroment variable.

Change-Id: Ice521ecf58b4fe111553561e60dae92172248025
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-242

ocata/docker/build_image.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 03b1121..980dffc
@@ -7,7 +7,8 @@ cd ${DOCKER_BUILD_DIR}
 BUILD_ARGS="--no-cache"
 VERSION="1.2.0-SNAPSHOT"
 STAGING="1.2.0-STAGING"
-IMAGE_NAME="${DOCKER_REPOSITORY:-"nexus3.onap.org:10003"}/${ORG:-"onap"}/${PROJECT:-"multicloud"}/${IMAGE:-"openstack-ocata"}"
+OS_VERSION="ocata"
+IMAGE_NAME="nexus3.onap.org:10003/onap/multicloud/openstack-${OS_VERSION}"
 
 if [ $HTTP_PROXY ]; then
     BUILD_ARGS+=" --build-arg HTTP_PROXY=${HTTP_PROXY}"