File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Remove orphaned firewall rules and networks generated by unintentional aborted runs of
2+ # google-cloud-node on gapic-test project: see
3+ # https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2118
4+ firewalls=$( gcloud compute firewall-rules list | cut -f 1 -d ' ' | grep ' ^gcloud-tests' )
5+ if [[ $firewalls ]]
6+ then
7+ echo ' Y' | gcloud compute firewall-rules delete $firewalls
8+ fi
9+ networks=$( gcloud compute networks list | cut -f 1 -d ' ' | grep ' ^gcloud-tests' )
10+ if [[ $networks ]]
11+ then
12+ echo ' Y' | gcloud compute networks delete $networks
13+ fi
14+
115# Export test env variables
216export GCLOUD_PROJECT=" gcloud-devel"
317export GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR /signing-tools/gcloud-devel-travis.json
You can’t perform that action at this time.
0 commit comments