Mercurial > public > develkit
comparison init20.gradle @ 254:4e57e2edb2ad
calculate docker engine url
author | smith@nwoca.org |
---|---|
date | Thu, 17 May 2018 20:56:47 +0100 |
parents | 01c6387bc240 |
children | 37e1c910c8f5 |
comparison
equal
deleted
inserted
replaced
253:46064f36ae31 | 254:4e57e2edb2ad |
---|---|
71 details.useTarget("${details.requested.group}:$shortName:${details.requested.version}") | 71 details.useTarget("${details.requested.group}:$shortName:${details.requested.version}") |
72 } | 72 } |
73 } | 73 } |
74 | 74 |
75 gradle.ext.runtimeInfo = new RuntimeInfo() | 75 gradle.ext.runtimeInfo = new RuntimeInfo() |
76 | |
77 | |
78 if (System.env.DOCKER_HOST ) { | |
79 if (System.env.DOCKER_HOST.contains('tcp:')) { | |
80 gradle.ext.dockerEngineUrl = "https:${System.env.DOCKER_HOST?.minus('tcp:')}" | |
81 } | |
82 gradle.ext.dockerEngineUrl = System.env.DOCKER_HOST | |
83 } | |
76 | 84 |
77 setBranchInfo() | 85 setBranchInfo() |
78 | 86 |
79 loadEnvironments() | 87 loadEnvironments() |
80 | 88 |
680 gradle.ext.branchStream = gradle.branch.stream | 688 gradle.ext.branchStream = gradle.branch.stream |
681 gradle.ext.branchHash = gradle.branch.hash | 689 gradle.ext.branchHash = gradle.branch.hash |
682 println "${gradle.hgRepositoryUrl} ${gradle.branch} ${gradle.branch.version}" | 690 println "${gradle.hgRepositoryUrl} ${gradle.branch} ${gradle.branch.version}" |
683 } | 691 } |
684 | 692 |
693 | |
685 @ToString(includes=['name','shortName','buildVersion','imageId','deployName'],includeNames= true) | 694 @ToString(includes=['name','shortName','buildVersion','imageId','deployName'],includeNames= true) |
686 class BranchInfo { | 695 class BranchInfo { |
687 def name | 696 def name |
688 def stream = "none" | 697 def stream = "none" |
689 def buildNumber = "" | 698 def buildNumber = "" |