Adding http proxy setup for non-intractive build 27/35027/1
authorDeepak S <deepak.s@linux.intel.com>
Fri, 19 May 2017 06:00:31 +0000 (23:00 -0700)
committerDeepak S <deepak.s@linux.intel.com>
Fri, 19 May 2017 06:00:31 +0000 (23:00 -0700)
Change-Id: I9a3137f60b83c88b16027a9e6c404ccc3673b820
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
tools/vnf_build.sh

index 2a9417c..342ac11 100755 (executable)
@@ -262,6 +262,18 @@ build_vnfs()
 if [[ "$1" = "--silient" ]];then
     pushd $VNF_CORE
 
+    echo "Setup proxy if needed..."
+    http_proxy=$2
+    https_proxy=$3
+    if [[ "$http_proxy" != "" ]]; then
+         export http_proxy=$http_proxy
+         export https_proxy=$http_proxy
+    fi
+
+    if [[ "$https_proxy" != "" ]]; then
+         export https_proxy=$https_proxy
+    fi
+
     echo "Install required libraries..."
     touch .agree
     install_libs