Add CI Job to convert checkstyle report to code quality report displayable in MR #175

Merged
lars.winzer merged 2 commits from chore/gitlab-ci-code-report into main 2026-03-14 09:20:33 +01:00
Showing only changes of commit 0157102ae5 - Show all commits
+19
View File
@@ -1,5 +1,6 @@
stages: stages:
- lint - lint
- report
- build - build
# Reusable definitions # Reusable definitions
@@ -17,16 +18,34 @@ checkstyle:
image: gradle:9.3.1-jdk25 image: gradle:9.3.1-jdk25
script: script:
- gradle checkstyleMain checkstyleTest - gradle checkstyleMain checkstyleTest
allow_failure: true
artifacts: artifacts:
when: always when: always
paths: paths:
- build/reports/checkstyle/main.html - build/reports/checkstyle/main.html
- build/reports/checkstyle/main.xml
- build/reports/checkstyle/test.html - build/reports/checkstyle/test.html
- build/reports/checkstyle/test.xml
expose_as: 'Checkstyle Report' expose_as: 'Checkstyle Report'
expire_in: 1 week expire_in: 1 week
rules: rules:
- when: manual - when: manual
checkstyle-report:
stage: report
image: python:3.14
needs:
- job: checkstyle
artifacts: true
optional: true
script:
- python3 scripts/convert-checkstyle-gl-report.py
artifacts:
when: always
reports:
codequality: gl-code-quality-report.json
expire_in: 1 week
compile-check: compile-check:
<<: *gradle-cache <<: *gradle-cache
stage: build stage: build