Merge "Modify logs publisher"
[ci-management.git] / jjb / csit / include-raw-csit-hc2vpp-verify-func.sh
1 #!/bin/bash
2
3 # Parse optional arguments from gerrit comment trigger
4 for i in ${GERRIT_EVENT_COMMENT_TEXT}; do
5     case ${i} in
6         *honeycomb=*)
7             hc_version=`echo "${i}" | cut -d = -f2-`
8         ;;
9         *)
10         ;;
11     esac
12 done
13
14 # If HC variable is set, check honeycomb version.
15 if [[ -n "${hc_version}" ]]; then
16     if [[ "${hc_version}" == *"-release" ]]; then
17         # we are going to test release build. All release
18         # packages should be already present in release repo
19         STREAM="release"
20         echo "STREAM set to: ${STREAM}"
21     fi
22 fi
23
24 # execute csit bootstrap script if it exists
25 if [[ ! -e bootstrap-hc2vpp-integration.sh ]]
26 then
27     echo 'ERROR: No bootstrap-hc2vpp-integration.sh found'
28     exit 1
29 else
30     # make sure that bootstrap.sh is executable
31     chmod +x bootstrap-hc2vpp-integration.sh
32     # run the script
33     ./bootstrap-hc2vpp-integration.sh ${STREAM} ${OS}
34 fi
35
36 # vim: ts=4 ts=4 sts=4 et :