aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2017-07-28 09:47:32 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-07-28 09:47:32 +0200
commitb74b94cdac6139120aa708f704f67f8fdc705a31 (patch)
tree7bdbdb23ce85d588218777343d772d9c98752dc9
parenta8381dee2c45e51a5a1f295a77cdfaafea80ec69 (diff)
better way to enable fetching GCE default credentials
-rw-r--r--tools/internal_ci/helper_scripts/prepare_build_windows.bat9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/internal_ci/helper_scripts/prepare_build_windows.bat b/tools/internal_ci/helper_scripts/prepare_build_windows.bat
index 95fd6a3e8e..69e087e1db 100644
--- a/tools/internal_ci/helper_scripts/prepare_build_windows.bat
+++ b/tools/internal_ci/helper_scripts/prepare_build_windows.bat
@@ -18,13 +18,12 @@ set PATH=C:\tools\msys64\usr\bin;C:\Python27;%PATH%
bash tools/internal_ci/helper_scripts/gen_report_index.sh
-@rem Add GCE DNS server and disable IPv6 to:
+@rem Update DNS settings to:
@rem 1. allow resolving metadata.google.internal hostname
@rem 2. make fetching default GCE credential by oauth2client work
-netsh interface ipv4 add dnsservers "Local Area Connection 8" 10.240.0.1 index=1
-netsh interface teredo set state disabled
-netsh interface 6to4 set state disabled
-netsh interface isatap set state disabled
+netsh interface ip set dns "Local Area Connection 8" static 169.254.169.254 primary
+netsh interface ip add dnsservers "Local Area Connection 8" 8.8.8.8 index=2
+netsh interface ip add dnsservers "Local Area Connection 8" 8.8.4.4 index=3
@rem Needed for big_query_utils
python -m pip install google-api-python-client