aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-04-12 17:07:01 +0200
committerJulien HENRY <henryju@yahoo.fr>2017-04-12 20:57:37 +0200
commit25e2a1de8a7a5366913ecd53336fee540e92d3c6 (patch)
treebf67dcfd296690a6a175396d2cd47ab2e44e3903 /it
parent8819f10f8adf719fad239a93f8349a1e2221c408 (diff)
downloadsonar-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.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/it/pom.xml b/it/pom.xml
index 4e3e090..0eefad7 100644
--- a/it/pom.xml
+++ b/it/pom.xml
@@ -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>