You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Disable OS Login for this VM to bypass the 32KB profile limit
45
+
- "--metadata=enable-oslogin=FALSE"
80
46
waitFor: ["-"]
81
47
82
48
# Step 2: Run the integration tests inside the newly created VM and cleanup.
@@ -91,19 +57,21 @@ steps:
91
57
set -e
92
58
# Wait for the VM to be fully initialized and SSH to be ready.
93
59
for i in {1..10}; do
94
-
if gcloud compute ssh ${_VM_NAME} --zone=${_ZONE} --internal-ip --ssh-key-file=/workspace/.ssh/google_compute_engine --command="echo VM is ready"; then
60
+
# Using --ssh-flag="-o StrictHostKeyChecking=no" forces gcloud into a different mode
61
+
# and --quiet prevents interactive prompts that trigger profile checks.
62
+
if gcloud compute ssh ${_VM_NAME} --zone=${_ZONE} --internal-ip --ssh-key-file=/workspace/.ssh/google_compute_engine --quiet --ssh-flag="-o StrictHostKeyChecking=no" --command="echo VM is ready"; then
95
63
break
96
64
fi
97
65
echo "Waiting for VM to become available... (attempt $i/10)"
0 commit comments