Only allow commandine deployment to alpha

This commit is contained in:
jianglai
2019-06-19 18:46:46 -04:00
committed by Lai Jiang
parent 0b52b87d92
commit e7b00dc4ee
+3
View File
@@ -74,6 +74,9 @@ ext.projectRootDir = "${rootDir}"
task deploy {
group = 'deployment'
description = 'Deploys all services to App Engine.'
if (rootProject.findProperty("environment") != 'alpha') {
throw new GradleException("Can only deploy to alpha.");
}
}
task stage {