From 110bd9c0577e260cdfcd3b1a8175e34a564cdd82 Mon Sep 17 00:00:00 2001 From: Shicong Huang Date: Fri, 26 Jul 2019 14:37:49 -0400 Subject: [PATCH] Fix deploying to alpha from workstation (#198) appengineDeployAll requires appengine.deploy.version to be set otherwiese the deployment would fail. --- appengine_war.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/appengine_war.gradle b/appengine_war.gradle index e53e48db3..1a1a8b76b 100644 --- a/appengine_war.gradle +++ b/appengine_war.gradle @@ -75,6 +75,12 @@ if (project.path == ":services:default") { appengine { deploy { + // appengineDeployAll task requires the version to be set. So, + // this config lets gcloud select a version name when deploying + // to alpha from our workstation. + if (environment != 'production' && environment != 'sandbox') { + version = 'GCLOUD_CONFIG' + } projectId = gcpProject } }