Skip to content

Commit 14ae891

Browse files
committed
Fix Cirrus QA
1 parent b9b2b8c commit 14ae891

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.cirrus.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
# RE-USABLE CONFIGS
1919
#
2020
container_definition: &CONTAINER_DEFINITION
21-
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j11-m3-latest
21+
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j21-latest
2222
cluster_name: ${CIRRUS_CLUSTER_NAME}
2323
region: eu-central-1
2424
namespace: default
@@ -49,20 +49,26 @@ build_task:
4949
- regular_mvn_build_deploy_analyze
5050
cleanup_before_cache_script:
5151
- cleanup_maven_repository
52+
on_failure:
53+
junit_result_artifacts:
54+
path: "**/target/surefire-reports/**.xml"
55+
format: junit
56+
type: text/xml
5257

5358
qa_task:
5459
depends_on:
5560
- build
5661
<<: *ONLY_SONARSOURCE_QA
5762
eks_container:
5863
<<: *CONTAINER_DEFINITION
64+
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j17-latest
5965
cpu: 2
6066
memory: 4G
6167
env:
6268
matrix:
63-
- QA_CATEGORY: RELEASE-7-9
64-
- QA_CATEGORY: RELEASE
65-
- QA_CATEGORY: DEV
69+
- SQ_VERSION: LATEST_RELEASE
70+
- SQ_VERSION: LATEST_RELEASE[2025.1]
71+
- SQ_VERSION: LATEST_RELEASE[9.9]
6672
JAVA_VERSION:
6773
- LATEST_RELEASE
6874
GITHUB_TOKEN: VAULT[development/github/token/licenses-ro token]
@@ -72,13 +78,16 @@ qa_task:
7278
- source cirrus-env QA
7379
- source set_maven_build_version $BUILD_NUMBER
7480
- cd its
75-
- function get_sq_version() { case $QA_CATEGORY in "RELEASE-7-9") echo "LATEST_RELEASE[7.9]";; "RELEASE") echo "LATEST_RELEASE";; *) echo "$QA_CATEGORY";; esac }
76-
- mvn -B -e verify -Prun-its -Dsonar.runtimeVersion=$(get_sq_version) -DjavaVersion=$JAVA_VERSION
81+
- mvn -B -e verify -Prun-its -Dsonar.runtimeVersion=$SQ_VERSION -DjavaVersion=$JAVA_VERSION
7782
cleanup_before_cache_script:
7883
- cleanup_maven_repository
7984
on_failure:
80-
reports_artifacts:
81-
path: "**/target/**/logs/*"
85+
server_logs_artifacts:
86+
path: "**/target/**/logs/**.log"
87+
junit_result_artifacts:
88+
path: "**/target/surefire-reports/**.xml"
89+
format: junit
90+
type: text/xml
8291

8392
promote_task:
8493
depends_on:

0 commit comments

Comments
 (0)