uschindler commented on code in PR #890:
URL: https://github.com/apache/lucene/pull/890#discussion_r872968994


##########
gradle/globals.gradle:
##########
@@ -147,5 +147,10 @@ allprojects {
       }
       return taskList
     }
+
+    // detect if we run in CI environment by looking at existence of env vars:
+    // "CI": Github 
(https://docs.github.com/en/actions/learn-github-actions/environment-variables)
+    // anything starting with "JENKINS_" or "HUDSON_": Jenkins/Hudson 
(https://jenkins.thetaphi.de/env-vars.html/)
+    isCIBuild = System.getenv().keySet().find { it ==~ 
/(?i)(JENKINS_?.*|HUDSON_?.*|CI)/ } != null

Review Comment:
   The regex is a bit stupid. The ? Makes no sense. It should be a bit 
different... Will fix in the evening.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to