Only allow commandine deployment to alpha

This commit is contained in:
jianglai 2019-06-14 15:31:15 -04:00 committed by Lai Jiang
parent 0b52b87d92
commit e7b00dc4ee

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 {