File tree Expand file tree Collapse file tree
packages/google-cloud-storage/cloudbuild Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 echo "Removing key: $$FINGERPRINT"
2121 gcloud compute os-login ssh-keys remove --key="$$FINGERPRINT" --quiet || true
2222 done
23- # Also attempt a profile delete as a fallback
24- gcloud compute os-login delete-profile --quiet || true
2523 waitFor : ["-"]
2624
2725 # Step 0: Generate a persistent SSH key for this build run.
3735 ssh-keygen -t rsa -f /workspace/.ssh/google_compute_engine -N '' -C gcb
3836 # Save the public key content to a file for the cleanup step
3937 cat /workspace/.ssh/google_compute_engine.pub > /workspace/gcb_ssh_key.pub
40- # Register the key with OS Login
41- gcloud compute os-login ssh-keys add --key-file=/workspace/.ssh/google_compute_engine.pub
4238 waitFor : ["cleanup-old-keys"]
4339
4440 # Step 1 Create a GCE VM to run the tests.
You can’t perform that action at this time.
0 commit comments