# HG changeset patch # User Dave Smith # Date 1383006334 -3600 # Node ID 465c6cf6dff3ec5608cf00c8de58bc5f9687013a # Parent 6389a03379a613a4a7ea947ba6e9f94909f26f0d adjust bamboo server detection diff -r 6389a03379a6 -r 465c6cf6dff3 init.gradle --- 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}"