use redfish tgz file from maven 72/172/1
authordavidplunkett <dp7642@att.com>
Wed, 1 Aug 2018 04:54:25 +0000 (00:54 -0400)
committerdavidplunkett <dp7642@att.com>
Wed, 1 Aug 2018 04:54:25 +0000 (00:54 -0400)
Change-Id: I906ad95148b88cb6817a9f801cae25a61b7a0fc1
Signed-off-by: davidplunkett <dp7642@att.com>
buildrc
setup_tools.sh

diff --git a/buildrc b/buildrc
index 0a59bac..1d80de4 100644 (file)
--- a/buildrc
+++ b/buildrc
@@ -18,8 +18,9 @@
 # before executing the build scripts if they differ from the default values.
 
 # SET DEFAULT VALUES
+export REDFISH_REPO=${REDFISH_REPO:-https://nexus.akraino.org/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.redfish&a=redfish&v=1.0.0-SNAPSHOT&e=tgz}
+
 export IPXE_GIT=${IPXE_GIT:-http://git.ipxe.org/ipxe.git}
-export REDFISH_GIT=${REDFISH_GIT:-http://gerrit.att-akraino.org/redfish.git}
 export DELL_GIT=${DELL_GIT:-https://github.com/dell/iDRAC-Redfish-Scripting.git}
 export IPXE_GIT=${IPXE_GIT:-http://git.ipxe.org/ipxe.git}
 
index 90bc19f..ea8dfd7 100755 (executable)
@@ -71,8 +71,9 @@ fi
 
 ## DOWNLOAD TOOLS TO TOOLS_ROOT IF TOOLS FOLDER MISSING
 if [ ! -d "$TOOLS_ROOT" ]; then
-    echo "Cloning latest tools from [$REDFISH_GIT] to [$TOOLS_ROOT]"
-    git clone $REDFISH_GIT $TOOLS_ROOT
+    echo "Installing latest tools from [$REDFISH_REPO] to [$TOOLS_ROOT]"
+    mkdir -p $TOOLS_ROOT
+    curl -L $REDFISH_REPO | tar -xz -C $TOOLS_ROOT 
 fi
 if [ ! -f "$TOOLS_ROOT/boot.ipxe.template" ]; then
     echo "ERROR:  failed cloning tools from [$REDFISH_GIT] to [$TOOLS_ROOT]"