Mercurial > public > develkit
comparison init50-github.gradle @ 361:7b6d30651db7
Cygwin has an ENV that container 'CI'. Causing build issues. Just check for 'github' to determine if it is a local build
author | davis@ssdt-ohio.org |
---|---|
date | Thu, 16 Nov 2023 15:52:40 -0500 |
parents | c57a1da032ec |
children | de8c350c511a |
comparison
equal
deleted
inserted
replaced
360:8238fff451c9 | 361:7b6d30651db7 |
---|---|
33 hostname = "hostname".execute().text.toLowerCase().readLines().first() | 33 hostname = "hostname".execute().text.toLowerCase().readLines().first() |
34 } catch (e) { | 34 } catch (e) { |
35 hostname = 'unknown' | 35 hostname = 'unknown' |
36 } | 36 } |
37 | 37 |
38 gradle.ext.bambooBuild = System.getenv().any { | 38 gradle.ext.bambooBuild = System.getenv().any { it.key.toLowerCase().contains('github') } |
39 it.key.toLowerCase().contains('ci') || | |
40 it.key.toLowerCase().contains('github') | |
41 } | |
42 | 39 |
43 gradle.ext.bambooLocalBuild = false | 40 gradle.ext.bambooLocalBuild = false |
44 | 41 |
45 gradle.ext.bambooPlan = (System.getenv('BAMBOO_PLAN') ?: 'UNKNOWN-UNKNOWN-JOB1').split('-')[0..1].join('-') | 42 gradle.ext.bambooPlan = (System.getenv('BAMBOO_PLAN') ?: 'UNKNOWN-UNKNOWN-JOB1').split('-')[0..1].join('-') |
46 logger.info "Bamboo plan: ${gradle.bambooPlan}" | 43 logger.info "Bamboo plan: ${gradle.bambooPlan}" |