4 echo "-----------------------------------------------------------------------"
5 echo $GERRIT_CHANGE_COMMIT_MESSAGE
6 echo "-----------------------------------------------------------------------"
8 # proposal for specifying the scenario name in commit message
9 # currently only 1 scenario name is supported but depending on
10 # the need, it can be expanded, supporting multiple scenarios
11 # using comma separated list or something
12 SCENARIO_NAME_PATTERN="(?<=@scenario:).*?(?=@)"
13 SCENARIO_NAME=(echo $GERRIT_CHANGE_COMMIT_MESSAGE | grep -oP "$SCENARIO_NAME_PATTERN")
14 if [[ $? -ne 0 ]]; then
15 echo "The patch verification will be done only with build!"
17 echo "Will run full verification; build, deploy, and smoke test using scenario $SCENARIO_NAME"