Skip to content

Commit 2b450eb

Browse files
BUILD-1828 Fix the notifications of the sonar-scanner-api qa tasks
1 parent 7da9175 commit 2b450eb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.cirrus.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ qa_task:
7676
memory: 3G
7777
env:
7878
matrix:
79-
- SQ_VERSION: LATEST_RELEASE[7.9]
80-
- SQ_VERSION: LATEST_RELEASE
81-
- SQ_VERSION: DEV
79+
- QA_CATEGORY: RELEASE-7-9
80+
- QA_CATEGORY: RELEASE
81+
- QA_CATEGORY: DEV
8282
JAVA_VERSION:
8383
- LATEST_RELEASE
8484
maven_cache:
@@ -87,7 +87,8 @@ qa_task:
8787
- source cirrus-env QA
8888
- source set_maven_build_version $BUILD_NUMBER
8989
- cd its
90-
- mvn -B -e verify -Prun-its -Dsonar.runtimeVersion=$SQ_VERSION -DjavaVersion=$JAVA_VERSION
90+
- function get_sq_version() { case $QA_CATEGORY in "RELEASE-7-9") echo "LATEST_RELEASE[7.9]";; "RELEASE") echo "LATEST_RELEASE";; *) echo "$QA_CATEGORY";; esac }
91+
- mvn -B -e verify -Prun-its -Dsonar.runtimeVersion=$(get_sq_version) -DjavaVersion=$JAVA_VERSION
9192
cleanup_before_cache_script:
9293
- cleanup_maven_repository
9394
on_failure:

0 commit comments

Comments
 (0)