comparison init20.gradle @ 228:12416b83c57e

USASR-2244: Attempt to fix syntax error
author Christopher Springer <springer@nwoca.org>
date Thu, 07 Jul 2016 17:07:26 +0100
parents d84d60b29395
children e63c2f7761a6
comparison
equal deleted inserted replaced
227:d84d60b29395 228:12416b83c57e
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 def repositoryUrl = System.getenv('bamboo_planRepository_repositoryUrl') 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 if (repositoryUrl) {
803 println "hg pull $repositoryUrl".execute().text
804 } else {
805 println "unable to determine repository url from environment bamboo_planRepository_repositoryUrl"
806 }
803 def versions = "hg branches --closed".execute().text.split('\n').findAll { 807 def versions = "hg branches --closed".execute().text.split('\n').findAll {
804 it.startsWith( 'release') || it.startsWith( 'hotfix') 808 it.startsWith( 'release') || it.startsWith( 'hotfix')
805 }.collect { 809 }.collect {
806 it.replaceAll('\\s+',' ').split(' ')[0].split('/')[1] - 'v' 810 it.replaceAll('\\s+',' ').split(' ')[0].split('/')[1] - 'v'
807 }.collect { 811 }.collect {