diff options
| author | Menny Even Danan <menny@evendanan.net> | 2020-03-16 02:10:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 02:10:04 +0000 |
| commit | e581d7ae2cf6b4ca084ad963a10633b71659d884 (patch) | |
| tree | 37f20ca1a04a18edee6dbcf48c7030b6f7ff11c4 /deployment/build.gradle | |
| parent | 0864f5a1f9127ddb7a1ffc36e36d9f8b70c5d164 (diff) | |
| download | AnySoftKeyboard-e581d7ae2cf6b4ca084ad963a10633b71659d884.tar.gz AnySoftKeyboard-e581d7ae2cf6b4ca084ad963a10633b71659d884.tar.bz2 | |
a bit more logs
Diffstat (limited to 'deployment/build.gradle')
| -rw-r--r-- | deployment/build.gradle | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/deployment/build.gradle b/deployment/build.gradle index 279b10991..2221865c2 100644 --- a/deployment/build.gradle +++ b/deployment/build.gradle @@ -78,21 +78,29 @@ tasks.register('deploymentRequestProcess').configure { if (!skipDeploymentReason.empty) { println(skipDeploymentReason); } else { + if (imeOnMasterPush == nulll) throw new NullPointerException("imeOnMasterPush") + if (addOnsOnMasterPush == nulll) throw new NullPointerException("addOnsOnMasterPush") + if (imePromoteMaster == nulll) throw new NullPointerException("imePromoteMaster") + if (addOnsPromoteMaster == nulll) throw new NullPointerException("addOnsPromoteMaster") + if (ref != null && newDeploy != null) { def imeDeploy def addOnsDeploy if (ref == 'master' || ref == 'refs/heads/master') { + println('deploy-request from master branch') if (newDeploy == 'true') { + println('deploy-request for a new deploy') imeDeploy = imeOnMasterPush addOnsDeploy = addOnsOnMasterPush } else if (newDeploy == 'false') { + println('deploy-request for a promote') imeDeploy = imePromoteMaster addOnsDeploy = addOnsPromoteMaster } } if (imeDeploy == null || addOnsDeploy == null) { - throw new IllegalStateException("Deployment flow for ref ${ref} and new-deploy ${newDeploy}.") + throw new IllegalStateException("Deployment flow for ref '${ref}' and new-deploy '${newDeploy}'.") } it.dependsOn imeDeploy, addOnsDeploy |
