diff init.gradle @ 156:465c6cf6dff3

adjust bamboo server detection
author Dave Smith <smith@nwoca.org>
date Tue, 29 Oct 2013 01:25:34 +0100
parents 6389a03379a6
children bf82d6ce853d
line wrap: on
line diff
--- a/init.gradle	Mon Oct 28 16:00:23 2013 +0100
+++ b/init.gradle	Tue Oct 29 01:25:34 2013 +0100
@@ -11,7 +11,7 @@
 def hostname 
 try { hostname = "hostname".execute().text.toLowerCase().readLines().first() } catch (e) { hostname = 'unknown'}
 
-gradle.ext.bambooBuild = System.getenv().any { it.key.startsWith('BAMBOO')} || hostname?.startsWith('ssdt-')
+gradle.ext.bambooBuild = System.getenv().any { it.key.toLowerCase().contains('bamboo')} || hostname?.startsWith('ssdt-')
 
 gradle.ext.bambooPlan = (System.getenv('BAMBOO_PLAN') ?: 'UNKNOWN-UNKNOWN-JOB1').split('-')[0..1].join('-')
 logger.info "Bamboo plan: ${gradle.bambooPlan}"