Correct ExternalAPI-NBI CSIT
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>
diff --git a/test/csit/scripts/externalapi-nbi/start_nbi_containers.sh b/test/csit/scripts/externalapi-nbi/start_nbi_containers.sh
index 24de740..61026d7 100644
--- a/test/csit/scripts/externalapi-nbi/start_nbi_containers.sh
+++ b/test/csit/scripts/externalapi-nbi/start_nbi_containers.sh
@@ -25,6 +25,9 @@
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'