Mercurial > public > develkit
comparison init20.gradle @ 229:e63c2f7761a6
USASR-2244: Remove unuseful message if bamboo repository url can't be discovered
author | Christopher Springer <springer@nwoca.org> |
---|---|
date | Mon, 11 Jul 2016 13:20:13 +0100 |
parents | 12416b83c57e |
children | e902c107f5db |
comparison
equal
deleted
inserted
replaced
228:12416b83c57e | 229:e63c2f7761a6 |
---|---|
799 | 799 |
800 private findSnapshotVersion() { | 800 private findSnapshotVersion() { |
801 def repositoryUrl = System.getenv('bamboo_planRepository_repositoryUrl') | 801 def repositoryUrl = System.getenv('bamboo_planRepository_repositoryUrl') |
802 if (repositoryUrl) { | 802 if (repositoryUrl) { |
803 println "hg pull $repositoryUrl".execute().text | 803 println "hg pull $repositoryUrl".execute().text |
804 } else { | |
805 println "unable to determine repository url from environment bamboo_planRepository_repositoryUrl" | |
806 } | 804 } |
807 def versions = "hg branches --closed".execute().text.split('\n').findAll { | 805 def versions = "hg branches --closed".execute().text.split('\n').findAll { |
808 it.startsWith( 'release') || it.startsWith( 'hotfix') | 806 it.startsWith( 'release') || it.startsWith( 'hotfix') |
809 }.collect { | 807 }.collect { |
810 it.replaceAll('\\s+',' ').split(' ')[0].split('/')[1] - 'v' | 808 it.replaceAll('\\s+',' ').split(' ')[0].split('/')[1] - 'v' |