Mercurial > public > develkit
comparison init20.gradle @ 193:0c0b1413ea70
narrow definition of bamboo build
author | smith@nwoca.org |
---|---|
date | Thu, 04 Jun 2015 16:56:19 +0100 |
parents | 4f8780714e4d |
children | a7a7d0e263d6 |
comparison
equal
deleted
inserted
replaced
192:4f8780714e4d | 193:0c0b1413ea70 |
---|---|
24 hostname = 'unknown' | 24 hostname = 'unknown' |
25 } | 25 } |
26 | 26 |
27 gradle.ext.bambooBuild = System.getenv().any { | 27 gradle.ext.bambooBuild = System.getenv().any { |
28 it.key.toLowerCase().contains('bamboo') | 28 it.key.toLowerCase().contains('bamboo') |
29 } || hostname?.startsWith('ssdt-') | 29 } || hostname?.startsWith('ssdt-ba') |
30 | 30 |
31 gradle.ext.bambooPlan = (System.getenv('BAMBOO_PLAN') ?: 'UNKNOWN-UNKNOWN-JOB1').split('-')[0..1].join('-') | 31 gradle.ext.bambooPlan = (System.getenv('BAMBOO_PLAN') ?: 'UNKNOWN-UNKNOWN-JOB1').split('-')[0..1].join('-') |
32 logger.info "Bamboo plan: ${gradle.bambooPlan}" | 32 logger.info "Bamboo plan: ${gradle.bambooPlan}" |
33 | 33 |
34 gradle.ext.buildTimestamp = System.currentTimeMillis().toString().padLeft(14, '0') | 34 gradle.ext.buildTimestamp = System.currentTimeMillis().toString().padLeft(14, '0') |