Merge branch 'feat/22-disallow-failure-of-checkstyle-mr-job' into 'main'
Disallow failure of checkstyle linter in merge requests See merge request cs108-fs26/Gruppe-13!54
This commit was merged in pull request #210.
This commit is contained in:
+3
-2
@@ -22,7 +22,7 @@ stages:
|
|||||||
.on-mr: &on-mr
|
.on-mr: &on-mr
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
allow_failure: true # deactivate after all issues (shown by checkstyle) have been resolved
|
allow_failure: false
|
||||||
|
|
||||||
# Jobs
|
# Jobs
|
||||||
checkstyle:
|
checkstyle:
|
||||||
@@ -48,7 +48,7 @@ checkstyle-mr:
|
|||||||
image: gradle:9.3.1-jdk25
|
image: gradle:9.3.1-jdk25
|
||||||
script:
|
script:
|
||||||
- gradle checkstyleMain checkstyleTest
|
- gradle checkstyleMain checkstyleTest
|
||||||
allow_failure: true
|
allow_failure: false
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
@@ -66,6 +66,7 @@ checkstyle-report:
|
|||||||
- job: checkstyle-mr
|
- job: checkstyle-mr
|
||||||
artifacts: true
|
artifacts: true
|
||||||
optional: true
|
optional: true
|
||||||
|
when: always
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
script:
|
script:
|
||||||
|
|||||||
Reference in New Issue
Block a user