Skip to content

Commit

Permalink
buildscripts: checkout matching grpc/grpc branch for xds test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgribkoff committed Mar 13, 2020
1 parent ff0e101 commit 8599712
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion buildscripts/kokoro/xds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 8599712

Please sign in to comment.