Csit-Honeycomb job for 17.01
[ci-management.git] / jjb / hc2vpp / include-raw-hc2vpp-csit-verify-prebuild.sh
1 #!/bin/bash
2 set -xeu -o pipefail
3
4 current_dir=`pwd`
5 cd ${WORKSPACE}
6
7 # Get CSIT branch from which to test from
8 # running build-root/scripts/csit-test-branch
9 if [ -x csit-test-branch ]; then
10     CSIT_BRANCH=`csit-test-branch`;
11 fi
12
13 # Clone csit and start tests
14 git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}
15
16 # If the git clone fails, complain clearly and exit
17 if [ $? != 0 ]; then
18     echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}"
19     exit
20 fi
21
22 if [ ${STREAM} == 'master' ]; then
23     ./csit/resources/tools/download_hc_build_pkgs.sh ${STREAM}
24 else
25     ./csit/resources/tools/download_hc_build_pkgs.sh 'stable.'${STREAM}
26 fi
27
28 cd ${current_dir}