Mercurial > public > develkit
comparison init20.gradle @ 227:d84d60b29395
USASR-2244: Attempt to explicitly specify url of repository when pulling
author | Christopher Springer <springer@nwoca.org> |
---|---|
date | Thu, 07 Jul 2016 17:05:36 +0100 |
parents | ea011be895bd |
children | 12416b83c57e |
comparison
equal
deleted
inserted
replaced
226:ea011be895bd | 227:d84d60b29395 |
---|---|
796 digest.update(s.bytes); | 796 digest.update(s.bytes); |
797 new BigInteger(1, digest.digest()).toString(16).padLeft(32, '0') | 797 new BigInteger(1, digest.digest()).toString(16).padLeft(32, '0') |
798 } | 798 } |
799 | 799 |
800 private findSnapshotVersion() { | 800 private findSnapshotVersion() { |
801 println "hg pull".execute().text | 801 def repositoryUrl = System.getenv('bamboo_planRepository_repositoryUrl') |
802 repositoryUrl ? println "hg pull $repositoryUrl".execute().text : println "unable to determine repository url from environment bamboo_planRepository_repositoryUrl" | |
802 def versions = "hg branches --closed".execute().text.split('\n').findAll { | 803 def versions = "hg branches --closed".execute().text.split('\n').findAll { |
803 it.startsWith( 'release') || it.startsWith( 'hotfix') | 804 it.startsWith( 'release') || it.startsWith( 'hotfix') |
804 }.collect { | 805 }.collect { |
805 it.replaceAll('\\s+',' ').split(' ')[0].split('/')[1] - 'v' | 806 it.replaceAll('\\s+',' ').split(' ')[0].split('/')[1] - 'v' |
806 }.collect { | 807 }.collect { |