changeset 361:7b6d30651db7

Cygwin has an ENV that container 'CI'. Causing build issues. Just check for 'github' to determine if it is a local build
author davis@ssdt-ohio.org
date Thu, 16 Nov 2023 15:52:40 -0500
parents 8238fff451c9
children de8c350c511a
files init40-github.gradle init50-github.gradle
diffstat 2 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/init40-github.gradle	Wed Nov 15 14:48:56 2023 -0500
+++ b/init40-github.gradle	Thu Nov 16 15:52:40 2023 -0500
@@ -36,10 +36,7 @@
     hostname = 'unknown'
 }
 
-gradle.ext.bambooBuild = System.getenv().any {
-    it.key.toLowerCase().contains('ci') ||
-            it.key.toLowerCase().contains('github')
-}
+gradle.ext.bambooBuild = System.getenv().any { it.key.toLowerCase().contains('github') }
 
 gradle.ext.bambooLocalBuild = false
 
--- a/init50-github.gradle	Wed Nov 15 14:48:56 2023 -0500
+++ b/init50-github.gradle	Thu Nov 16 15:52:40 2023 -0500
@@ -35,10 +35,7 @@
     hostname = 'unknown'
 }
 
-gradle.ext.bambooBuild = System.getenv().any {
-    it.key.toLowerCase().contains('ci') ||
-            it.key.toLowerCase().contains('github')
-}
+gradle.ext.bambooBuild = System.getenv().any { it.key.toLowerCase().contains('github') }
 
 gradle.ext.bambooLocalBuild = false