diff init50-github.gradle @ 351:c57a1da032ec

check for github envars
author Marc Davis <marc.davis@mcoecn.org>
date Thu, 10 Aug 2023 12:29:25 -0400
parents b8d368020501
children 7b6d30651db7
line wrap: on
line diff
--- a/init50-github.gradle	Wed Jul 26 11:17:00 2023 -0400
+++ b/init50-github.gradle	Thu Aug 10 12:29:25 2023 -0400
@@ -36,18 +36,11 @@
 }
 
 gradle.ext.bambooBuild = System.getenv().any {
-    it.key.toLowerCase().contains('bamboo')
-} || hostname?.startsWith('ssdt-ba')
-
-if (!rootProject.hasProperty("bambooLocalBuild")) {
-    gradle.ext.bambooLocalBuild = false
-} else {
-    gradle.ext.bambooLocalBuild = rootProject.bambooLocalBuild.toBoolean()
+    it.key.toLowerCase().contains('ci') ||
+            it.key.toLowerCase().contains('github')
 }
 
-if (gradle.bambooLocalBuild) {
-    println "Bamboo local build active"
-}
+gradle.ext.bambooLocalBuild = false
 
 gradle.ext.bambooPlan = (System.getenv('BAMBOO_PLAN') ?: 'UNKNOWN-UNKNOWN-JOB1').split('-')[0..1].join('-')
 logger.info "Bamboo plan: ${gradle.bambooPlan}"