# HG changeset patch # User Marc Davis # Date 1675256609 18000 # Node ID eaed73a5ec1d9c67858a92d5facd9258df948d3e # Parent 5e9e2ea826575fac9f3d76ac99f1f10244fbf3bb add println for bamboo debugging diff -r 5e9e2ea82657 -r eaed73a5ec1d init40-git.gradle --- a/init40-git.gradle Tue Jan 31 16:01:00 2023 -0500 +++ b/init40-git.gradle Wed Feb 01 08:03:29 2023 -0500 @@ -799,19 +799,21 @@ new BigInteger(1, digest.digest()).toString(16).padLeft(32, '0') } - private findSnapshotVersion() { + private Version findSnapshotVersion() { println "findSnapshotVersion()" try { def repositoryUrl = System.getenv('bamboo_planRepository_repositoryUrl') if (repositoryUrl) { println "git pull $repositoryUrl".execute().text } + println "git tag".execute().text def versions = "git tag".execute().text.split("\n") .collect { it.replace("v", "") } .collect { new Version(*it.split('\\.')*.toInteger()) } .sort { v1, v2 -> v2 <=> v1 } return versions ? versions.first().nextSnapshot() : new Version().nextSnapshot() - } catch (ignored) { + } catch (ex) { + println ex return new Version().nextSnapshot() } }