aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/interoptest/grpc_interop_node
diff options
context:
space:
mode:
authorGravatar kpayson64 <kpayson@google.com>2018-04-21 15:10:00 -0700
committerGravatar GitHub <noreply@github.com>2018-04-21 15:10:00 -0700
commit6abc0aef5d07bb55477c2f59c4793f3452e51efc (patch)
tree9d18592d203416d385b2c4f483dab0a7b3595ddc /tools/dockerfile/interoptest/grpc_interop_node
parent98a56a2951df259c9a6ec2d21b4398f1d924b5e9 (diff)
parent9d00766d5a5e4a7266a35ff50ebdf084e1517173 (diff)
Merge pull request #15048 from kpayson64/use_c_core_for_interop
Use c core for interop
Diffstat (limited to 'tools/dockerfile/interoptest/grpc_interop_node')
-rwxr-xr-xtools/dockerfile/interoptest/grpc_interop_node/build_interop.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/dockerfile/interoptest/grpc_interop_node/build_interop.sh b/tools/dockerfile/interoptest/grpc_interop_node/build_interop.sh
index c16efc1d35..21fdd0b490 100755
--- a/tools/dockerfile/interoptest/grpc_interop_node/build_interop.sh
+++ b/tools/dockerfile/interoptest/grpc_interop_node/build_interop.sh
@@ -17,12 +17,23 @@
set -e
mkdir -p /var/local/git
+
git clone /var/local/jenkins/grpc-node /var/local/git/grpc-node
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc-node/ && git submodule foreach 'cd /var/local/git/grpc-node \
&& git submodule update --init --recursive --reference /var/local/jenkins/grpc-node/${name} \
${name}')
+# Use the pending c-core changes if possible
+if [ -d "/var/local/jenkins/grpc" ]; then
+ cd /var/local/jenkins/grpc
+ CURRENT_COMMIT="$(git rev-parse --verify HEAD)"
+ cd /var/local/git/grpc-node/packages/grpc-native-core/deps/grpc/
+ git fetch --tags --progress https://github.com/grpc/grpc.git +refs/pull/*:refs/remotes/origin/pr/*
+ git checkout $CURRENT_COMMIT
+ git submodule update --init --recursive --reference /var/local/jenkins/grpc
+fi
+
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true