From: davidplunkett Date: Fri, 21 Sep 2018 19:32:24 +0000 (+0000) Subject: add dell tools commit hash option X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=8cb8a097ef8ca03597e4abc8b81c7ee62663e529;p=redfish.git add dell tools commit hash option Change-Id: I30c7df2e1038267d43ac6c96bc953112f9a65be4 Signed-off-by: davidplunkett --- diff --git a/buildrc b/buildrc index a97445a..fe3ccba 100644 --- 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} diff --git a/setup_tools.sh b/setup_tools.sh index 55615b1..44ac6da 100755 --- a/setup_tools.sh +++ b/setup_tools.sh @@ -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