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