buildscripts: checkout matching grpc/grpc branch for xds test (#6828)

This commit is contained in:
Eric Gribkoff 2020-03-13 15:32:13 -07:00 committed by GitHub
parent b72477e282
commit 1acde4604f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -8,10 +8,16 @@ fi
cd github
pushd grpc-java/interop-testing
branch=$(git branch --all --no-color --contains "${KOKORO_GITHUB_COMMIT}" \
| grep -v HEAD | head -1)
shopt -s extglob
branch="${branch//[[:space:]]}"
branch="${branch##remotes/origin/}"
shopt -u extglob
../gradlew installDist -x test -PskipCodegen=true -PskipAndroid=true
popd
git clone https://github.com/grpc/grpc.git
git clone -b "${branch}" https://github.com/grpc/grpc.git
grpc/tools/run_tests/helper_scripts/prep_xds.sh
JAVA_OPTS=-Djava.util.logging.config.file=grpc-java/buildscripts/xds_logging.properties \