changeset 339:21b015e926ff

testing
author marc_davis <davis@ssdt-ohio.org>
date Tue, 30 May 2023 13:26:58 -0400
parents 0befe249fc6f
children 5b1ab7484ad7
files init70-github.gradle
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/init70-github.gradle	Tue May 30 13:07:44 2023 -0400
+++ b/init70-github.gradle	Tue May 30 13:26:58 2023 -0400
@@ -35,10 +35,10 @@
     hostname = 'unknown'
 }
 
-System.getenv().each { println it }
-
+//Determine if the build is a CI build.
 gradle.ext.bambooBuild = System.getenv().any {
-    it.key.toLowerCase().contains('ci')
+    it.key.toLowerCase().contains('ci') ||
+            it.key.toLowerCase().contains('github')
 }
 
 gradle.ext.bambooLocalBuild = false
@@ -803,6 +803,11 @@
                     .collect { new Version(*it.split('\\.')*.toInteger()) }
 
             def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 }
+
+            results.each {
+                println it
+            }
+
             if (results.isEmpty()) {
                 return new Version().nextSnapshot()
             } else {