From cd7e67d9328def5dac610d2cc9a11b6cbb48edc2 Mon Sep 17 00:00:00 2001 From: Thomas F Herbert Date: Sat, 5 Nov 2016 19:56:05 -0400 Subject: Fix base directory so Jenkins can find build dir. The ci-man sets up the JJB with relative path names so this base directory was incorrect and it couldn't find build directory. Change-Id: I635f81194b254b89875eeb907679b17b2cc0c8ae Signed-off-by: Thomas F Herbert --- scripts/ci/verify.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/scripts/ci/verify.sh b/scripts/ci/verify.sh index ed698b4..219821e 100755 --- a/scripts/ci/verify.sh +++ b/scripts/ci/verify.sh @@ -18,14 +18,23 @@ elif [ -f /etc/redhat-release ];then cat /etc/redhat-release echo fi -export BASE_DIR=$(dirname $0)/../rpm_dpdk +export BASE_DIR=$(dirname $0)/../.. echo "======================================" echo "BASE_DIR: ${BASE_DIR}" echo -if [ -d ${BASE_DIR}/build ]; then - cd ${BASE_DIR}/build/ - if [ -e build.sh ]; then - ./build.sh - fi +if [ ! -d ${BASE_DIR}/build ]; then + echo "==================================" + echo "${BASE_DIR}/build doesn't exist" + echo + exit 0 +fi +cd ${BASE_DIR}/build/ +if [ ! -e build.sh ]; then + echo "==================================" + echo "build.sh doesn't exist" + echo + exit 0 fi +echo ./build.sh +./build.sh -- cgit 1.2.3-korg