CIMANAGE-12: csit-vpp-verify-master-semiweekly job uses wrong CSIT branch 92/1892/1
authorJan Gelety <jgelety@cisco.com>
Thu, 7 Jul 2016 12:06:48 +0000 (14:06 +0200)
committerJan Gelety <jgelety@cisco.com>
Thu, 7 Jul 2016 12:06:48 +0000 (14:06 +0200)
- use proper regex in grep command to choose correct csit branch

Change-Id: I683e31e19d2eec556180c810cc1509abe6bfe4f4
Signed-off-by: Jan Gelety <jgelety@cisco.com>
jjb/csit/include-raw-csit-vpp-verify-semiweekly.sh

index cd17854..c0c19b3 100644 (file)
@@ -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"