X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fhc2vpp%2Finclude-raw-hc2vpp-csit-integration.sh;h=e4bbd3fc3e08162e85c2734afbe8fad2f3936aaf;hb=49b3712b4e2477f38a0e70f1f2d235d51cef1887;hp=14ce67029d06fde67582222d9d2e432381cf4a0d;hpb=d72cae1f406002624b2e8b2e569206d95d582082;p=ci-management.git diff --git a/jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh b/jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh index 14ce67029..e4bbd3fc3 100644 --- a/jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh +++ b/jjb/hc2vpp/include-raw-hc2vpp-csit-integration.sh @@ -1,16 +1,20 @@ #!/bin/bash set -xeu -o pipefail -# Clone csit and start tests -if [ ${STREAM} == 'master' ]; then - git clone https://gerrit.fd.io/r/csit --branch master +# Get CSIT branch +if [ -f csit-test-branch ]; then + chmod +x csit-test-branch + CSIT_BRANCH=`./csit-test-branch` else - git clone https://gerrit.fd.io/r/csit --branch 'rls'${STREAM} + CSIT_BRANCH='master' fi +# Clone csit +git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH} + # If the git clone fails, complain clearly and exit if [ $? != 0 ]; then - echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch master" + echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}" exit fi