From 25e2a1de8a7a5366913ecd53336fee540e92d3c6 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 12 Apr 2017 17:07:01 +0200 Subject: [PATCH] Fix QA script --- it/pom.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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).*(.*?)-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'] ]]> -- 2.39.5