https://bugs.webkit.org/show_bug.cgi?id=106524
Patch by Alan Cutter <alancutter@chromium.org> on 2013-01-14
Reviewed by Adam Barth.
* EWSTools/GoogleComputeEngine/build-chromium-ews.sh:
* EWSTools/GoogleComputeEngine/build-commit-queue.sh:
* EWSTools/GoogleComputeEngine/build-feeder-style-sheriffbot.sh:
* EWSTools/GoogleComputeEngine/findzone.sh: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139704
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-01-14 Alan Cutter <alancutter@chromium.org>
+
+ Fix EWS GCE build scripts to detect which zone is available
+ https://bugs.webkit.org/show_bug.cgi?id=106524
+
+ Reviewed by Adam Barth.
+
+ * EWSTools/GoogleComputeEngine/build-chromium-ews.sh:
+ * EWSTools/GoogleComputeEngine/build-commit-queue.sh:
+ * EWSTools/GoogleComputeEngine/build-feeder-style-sheriffbot.sh:
+ * EWSTools/GoogleComputeEngine/findzone.sh: Added.
+
2013-01-14 Tim 'mithro' Ansell <mithro@mithis.com>
Adding an error string to AmbiguousCommitError.
read -s -p "Bugzilla Password: " BUGZILLA_PASSWORD && echo
PROJECT=google.com:webkit
-# FIXME: We should use gcutil to find a zone that's actually up.
-ZONE=us-east1-a
+ZONE=$(findzone.sh $PROJECT)
IMAGE=projects/google/images/ubuntu-10-04-v20120621
MACHINE_TYPE=n1-standard-4-d
read -s -p "Subversion Password: " SVN_PASSWORD && echo
PROJECT=google.com:webkit
-# FIXME: We should use gcutil to find a zone that's actually up.
-ZONE=us-east1-a
+ZONE=$(findzone.sh $PROJECT)
IMAGE=projects/google/images/ubuntu-10-04-v20120621
MACHINE_TYPE=n1-standard-4-d
read -s -p "sheriffbot IRC Password: " IRC_PASSWORD && echo
PROJECT=google.com:webkit
-# FIXME: We should use gcutil to find a zone that's actually up.
-ZONE=us-east1-a
+ZONE=$(findzone.sh $PROJECT)
IMAGE=projects/google/images/ubuntu-10-04-v20120621
MACHINE_TYPE=n1-standard-4-d
--- /dev/null
+if [[ $# -ne 1 ]]; then
+ echo "Usage: findzone.sh PROJECT"
+fi
+
+echo $(gcutil --project=$1 listzones | grep UP | awk '{print $2}' | sort | tail -1)