From 5a8476b77a7a679d8adebdfe69fa4c9fda4a96ff Mon Sep 17 00:00:00 2001 From: Matteo Mara Date: Tue, 10 Oct 2023 16:12:58 +0200 Subject: [PATCH] SQSCANNER-121 Fix QA execution by using Cirrus provided build version --- it/pom.xml | 40 ++++++---------------------------------- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/it/pom.xml b/it/pom.xml index 4ac0b37..bbbde14 100644 --- a/it/pom.xml +++ b/it/pom.xml @@ -74,7 +74,7 @@ maven-surefire-plugin - ${scanner.version} + ${env.PROJECT_VERSION} **/SonarScannerTestSuite.java @@ -90,39 +90,11 @@ download-qa-artifacts - env.CI_BUILD_NUMBER + env.PROJECT_VERSION - - org.codehaus.gmaven - groovy-maven-plugin - 2.0 - - - compute-qa-version - initialize - - execute - - - (.*?)-SNAPSHOT<\/version>.*/ - assert matcher.matches() - def versionNoSnapshot = matcher[0][1] - if (new StringTokenizer(versionNoSnapshot, ".").countTokens() == 2) { - versionNoSnapshot += '.0' - } - project.properties['scanner.version'] = versionNoSnapshot + '.' + System.getenv()['CI_BUILD_NUMBER'] - ]]> - - - - - - org.apache.maven.plugins maven-dependency-plugin @@ -135,7 +107,7 @@ get - org.sonarsource.scanner.cli:sonar-scanner-cli:${scanner.version}:zip + org.sonarsource.scanner.cli:sonar-scanner-cli:${env.PROJECT_VERSION}:zip @@ -145,7 +117,7 @@ get - org.sonarsource.scanner.cli:sonar-scanner-cli:${scanner.version}:zip:linux + org.sonarsource.scanner.cli:sonar-scanner-cli:${env.PROJECT_VERSION}:zip:linux @@ -155,7 +127,7 @@ get - org.sonarsource.scanner.cli:sonar-scanner-cli:${scanner.version}:zip:windows + org.sonarsource.scanner.cli:sonar-scanner-cli:${env.PROJECT_VERSION}:zip:windows @@ -165,7 +137,7 @@ get - org.sonarsource.scanner.cli:sonar-scanner-cli:${scanner.version}:zip:macosx + org.sonarsource.scanner.cli:sonar-scanner-cli:${env.PROJECT_VERSION}:zip:macosx -- 2.39.5