From: Jan Gelety Date: Thu, 7 Jul 2016 12:06:48 +0000 (+0200) Subject: CIMANAGE-12: csit-vpp-verify-master-semiweekly job uses wrong CSIT branch X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F1892%2F1;p=ci-management.git CIMANAGE-12: csit-vpp-verify-master-semiweekly job uses wrong CSIT branch - use proper regex in grep command to choose correct csit branch Change-Id: I683e31e19d2eec556180c810cc1509abe6bfe4f4 Signed-off-by: Jan Gelety --- diff --git a/jjb/csit/include-raw-csit-vpp-verify-semiweekly.sh b/jjb/csit/include-raw-csit-vpp-verify-semiweekly.sh index cd178545f..c0c19b323 100644 --- a/jjb/csit/include-raw-csit-vpp-verify-semiweekly.sh +++ b/jjb/csit/include-raw-csit-vpp-verify-semiweekly.sh @@ -19,7 +19,7 @@ fi cd csit # get the latest verified version of the required branch -BRANCH_NAME=$(echo $(git branch -r | grep ${BRANCH_ID} | tail -n 1)) +BRANCH_NAME=$(echo $(git branch -r | grep -E "${BRANCH_ID}-[0-9]+" | tail -n 1)) if [ "${BRANCH_NAME}" == "" ]; then echo "No verified version found for requested branch - exiting"