diff options
author | 2016-09-26 12:05:05 -0700 | |
---|---|---|
committer | 2016-09-28 16:55:15 -0700 | |
commit | 5d0f24600ef9b985bef3aada69e2f5847467c53c (patch) | |
tree | 16a8a8445fde16a15e656ae56de365c992dbc321 /tools/dockerfile/stress_test/grpc_interop_stress_php/build_interop_stress.sh | |
parent | 46c7f574bd4a5298f09fd5d72924b93c355e357e (diff) |
changed method to local clone submodules to using git submodule foreach from the local copy
Diffstat (limited to 'tools/dockerfile/stress_test/grpc_interop_stress_php/build_interop_stress.sh')
-rwxr-xr-x | tools/dockerfile/stress_test/grpc_interop_stress_php/build_interop_stress.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/dockerfile/stress_test/grpc_interop_stress_php/build_interop_stress.sh b/tools/dockerfile/stress_test/grpc_interop_stress_php/build_interop_stress.sh index 78bf32ce51..0f624bf321 100755 --- a/tools/dockerfile/stress_test/grpc_interop_stress_php/build_interop_stress.sh +++ b/tools/dockerfile/stress_test/grpc_interop_stress_php/build_interop_stress.sh @@ -33,16 +33,16 @@ set -ex mkdir -p /var/local/git git clone /var/local/jenkins/grpc /var/local/git/grpc +# clone gRPC submodules, use data from locally cloned submodules where possible +(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \ +&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \ +${name}') # copy service account keys if available cp -r /var/local/jenkins/service_account $HOME || true cd /var/local/git/grpc -# clone gRPC submodules, use data from locally cloned submodules where possible -git submodule | awk '{ system("git submodule update --init --reference \ -./../../jenkins/grpc/" $2 " " $2) }' - rvm --default use ruby-2.1 make install-certs |