diff options
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 |