Correct ExternalAPI-NBI CSIT 99/47299/3
authorEric Debeau <eric.debeau@orange.com>
Sat, 12 May 2018 07:29:49 +0000 (07:29 +0000)
committerEric Debeau <eric.debeau@orange.com>
Mon, 14 May 2018 07:13:51 +0000 (07:13 +0000)
CSIT fails due to modification in docker-compose.yml
Create .env file to solve the problem
Move creation .env file in the workspace directory

Change-Id: I43343316faafb8108a12874de814ee918ac62ae6
Issue-ID: EXTAPI-86
Signed-off-by: Eric Debeau <eric.debeau@orange.com>
test/csit/scripts/externalapi-nbi/start_nbi_containers.sh

index 24de740..61026d7 100644 (file)
@@ -25,6 +25,9 @@ echo "This is ${WORKSPACE}/test/csit/scripts/externalapi-nbi/start_nbi_container
 mkdir -p $WORKSPACE/externalapi-nbi
 cd $WORKSPACE/externalapi-nbi
 
+# Create .env file to access env variables for docker-compose
+echo "NEXUS_DOCKER_REPO=${NEXUS_DOCKER_REPO}" > .env
+
 # Fetch the latest docker-compose.yml
 wget -O docker-compose.yml 'https://git.onap.org/externalapi/nbi/plain/docker-compose.yml?h=master'