From 7859ef27fbd2060bc20868cea3c06e32ef536a5d Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Fri, 17 Aug 2018 10:13:48 -0400 Subject: [PATCH] Apex: Update snapshot detection Detection now allows for allinone types. Change-Id: I61d0e22bd3c940c509917db820281dab1a5fc66f Signed-off-by: Tim Rozet --- jjb/3rd_party_ci/detect-snapshot.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jjb/3rd_party_ci/detect-snapshot.sh b/jjb/3rd_party_ci/detect-snapshot.sh index 4949cb2c8..77788aa2c 100755 --- a/jjb/3rd_party_ci/detect-snapshot.sh +++ b/jjb/3rd_party_ci/detect-snapshot.sh @@ -8,9 +8,8 @@ parsed_comment=$(echo $GERRIT_EVENT_COMMENT_TEXT | sed -n 's/^.*check-opnfv\s*// parsed_comment=$(echo $parsed_comment | sed -n 's/\s*$//p') if [ ! -z "$parsed_comment" ]; then if echo $parsed_comment | grep -E '^[a-z]+-(no)?ha'; then - IFS='-' read -r -a array <<< "$parsed_comment" - os_version=${array[0]} - topo=${array[1]} + os_version=${parsed_comment%%"-"*} + topo=${parsed_comment#*"-"} echo "OS version detected in gerrit comment: ${os_version}" echo "Topology type detected in gerrit comment: ${topo}" else -- 2.16.6