diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-04-12 17:07:01 +0200 |
---|---|---|
committer | Julien HENRY <henryju@yahoo.fr> | 2017-04-12 20:57:37 +0200 |
commit | 25e2a1de8a7a5366913ecd53336fee540e92d3c6 (patch) | |
tree | bf67dcfd296690a6a175396d2cd47ab2e44e3903 /it | |
parent | 8819f10f8adf719fad239a93f8349a1e2221c408 (diff) | |
download | sonar-scanner-cli-25e2a1de8a7a5366913ecd53336fee540e92d3c6.tar.gz sonar-scanner-cli-25e2a1de8a7a5366913ecd53336fee540e92d3c6.zip |
Fix QA script3.0.1.733
Diffstat (limited to 'it')
-rw-r--r-- | it/pom.xml | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -108,7 +108,11 @@ String pom = new File(project.basedir, '../pom.xml').getText('UTF-8') def matcher = pom =~ /(?s).*<version>(.*?)-SNAPSHOT<\/version>.*/ assert matcher.matches() - project.properties['scanner.version'] = matcher[0][1] + '.0.' + System.getenv()['CI_BUILD_NUMBER'] + def versionNoSnapshot = matcher[0][1] + if (new StringTokenizer(versionNoSnapshot, ".").countTokens() == 2) { + versionNoSnapshot += '.0' + } + project.properties['scanner.version'] = versionNoSnapshot + '.' + System.getenv()['CI_BUILD_NUMBER'] ]]> </source> </configuration> |