add dell tools commit hash option 60/260/1
authordavidplunkett <dp7642@att.com>
Fri, 21 Sep 2018 19:32:24 +0000 (19:32 +0000)
committerdavidplunkett <dp7642@att.com>
Fri, 21 Sep 2018 19:32:24 +0000 (19:32 +0000)
Change-Id: I30c7df2e1038267d43ac6c96bc953112f9a65be4
Signed-off-by: davidplunkett <dp7642@att.com>
buildrc
setup_tools.sh

diff --git a/buildrc b/buildrc
index a97445a..fe3ccba 100644 (file)
--- a/buildrc
+++ b/buildrc
@@ -22,6 +22,7 @@ export REDFISH_REPO=${REDFISH_REPO:-https://nexus.akraino.org/service/local/arti
 
 export IPXE_GIT=${IPXE_GIT:-http://git.ipxe.org/ipxe.git}
 export DELL_GIT=${DELL_GIT:-https://github.com/dell/iDRAC-Redfish-Scripting.git}
+export DELL_GIT_COMMIT=${DELL_GIT_COMMIT:-64f184c8c37ed1f64831c5695cd69092105e5eec}
 export HPE_GIT=${HPE_GIT:-https://github.com/HewlettPackard/python-ilorest-library.git}
 
 export REDFISH_ROOT=${REDFISH_ROOT:-/opt/akraino}
index 55615b1..44ac6da 100755 (executable)
@@ -91,6 +91,11 @@ if [ ! -d "$DELL_ROOT" ]; then
     echo "Cloning Dell redfish source from [$DELL_GIT] to [$DELL_ROOT]"
     git clone $DELL_GIT $DELL_ROOT
 
+    if [ -n "DELL_GIT_COMMIT" ]; then
+        echo "Using specific commit id [$DELL_GIT_COMMIT]"
+        (cd $DELL_ROOT; git checkout $DELL_GIT_COMMIT)
+    fi
+
     ## PATCH STATUS REPORTING DELAY TO 15 SECS (INSTEAD OF 3)
     sed -i -e 's/time.sleep(3)/time.sleep(15)/g' "$DELL_ROOT/Redfish Python/ImportSystemConfigurationLocalFilenameREDFISH.py"
 fi