Merge "Revert "Set the trigger for csit-vpp-perf-mrr-daily-master""
[ci-management.git] / jjb / csit / include-raw-csit-perf-verify.sh
1 #!/bin/bash
2
3 set -xeu -o pipefail
4
5 if [[ ${GERRIT_EVENT_TYPE} == 'comment-added' ]]; then
6     TRIGGER=`echo ${GERRIT_EVENT_COMMENT_TEXT} \
7         | grep -oE '(perftest$|perftest[[:space:]].+$)'`
8 else
9     TRIGGER=''
10 fi
11 # Export test tags as string.
12 export TEST_TAG_STRING=${TRIGGER#$"perftest"}
13
14 # execute csit bootstrap script if it exists
15 if [ ! -e bootstrap-verify-perf.sh ]
16 then
17     echo 'ERROR: No bootstrap-verify-perf.sh found'
18     exit 1
19 fi
20
21 # make sure that bootstrap-verify-perf.sh is executable
22 chmod +x bootstrap-verify-perf.sh
23 # run the script
24 ./bootstrap-verify-perf.sh
25
26 # vim: ts=4 ts=4 sts=4 et :