diff options
author | Tim Rozet <trozet@redhat.com> | 2018-08-17 10:13:48 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2018-08-17 10:13:48 -0400 |
commit | 7859ef27fbd2060bc20868cea3c06e32ef536a5d (patch) | |
tree | 56bc9150342c89d3c8b73eaadb37862a4c4f8aae /jjb | |
parent | d12570546e08c372b12712b90467bd65aea445b0 (diff) |
Apex: Update snapshot detection
Detection now allows for allinone types.
Change-Id: I61d0e22bd3c940c509917db820281dab1a5fc66f
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/3rd_party_ci/detect-snapshot.sh | 5 |
1 files 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 |