File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 2323 - test -z "$(git ls-files --others --exclude-standard 2> /dev/null)" || exit "Documentation created untracked files, cannot proceed"
2424 - junit-report add --status=ok --file=diff --message="Diff is clean" --description="Check for uncommitted changes in the repository"
2525 artifacts :
26- when : always
26+ when : on_failure
2727 paths :
2828 - junit-report.xml
2929 reports :
@@ -59,7 +59,7 @@ check-large-files:
5959 junit-report add --status=ok --file=large-files --message="commit clean" --description="No large files found in the latest commit."
6060 fi
6161 artifacts :
62- when : always
62+ when : on_failure
6363 paths :
6464 - junit-report.xml
6565 reports :
Original file line number Diff line number Diff line change 2020 junit-report add --status=failed --message="go mod tidy not executed" --description="$(git diff)"
2121 fi
2222 artifacts :
23- when : always
23+ when : on_failure
2424 paths :
2525 - junit-report.xml
2626 reports :
@@ -49,7 +49,7 @@ format:
4949 junit-report add --status=failed --message="go code not formatted" --description="$(git diff)"
5050 fi
5151 artifacts :
52- when : always
52+ when : on_failure
5353 paths :
5454 - junit-report.xml
5555 reports :
7575 junit-report add --status=failed --message="git diff is not clean" --description="$(git diff)"
7676 fi
7777 artifacts :
78- when : always
78+ when : on_failure
7979 paths :
8080 - junit-report.xml
8181 reports :
@@ -86,9 +86,15 @@ commit-policy:
8686 rules :
8787 - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
8888 image :
89- name : $CI_REGISTRY_GO/commit-check:5.2 .0
89+ name : $CI_REGISTRY_GO/commit-check:5.4 .0
9090 entrypoint : [""]
9191 tags :
9292 - go
9393 script :
9494 - /check
95+ artifacts :
96+ when : on_failure
97+ paths :
98+ - junit-report.xml
99+ reports :
100+ junit : junit-report.xml
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ license:
2121 junit-report add --status=failed --message="licenses errors" --description="$(task licenses 2>&1)"
2222 fi
2323 artifacts :
24- when : always
24+ when : on_failure
2525 paths :
2626 - junit-report.xml
2727 reports :
@@ -49,7 +49,7 @@ govulncheck:
4949 junit-report add --status=failed --message="vulnerabilities detected" --description="$(task govulncheck 2>&1)"
5050 fi
5151 artifacts :
52- when : always
52+ when : on_failure
5353 paths :
5454 - junit-report.xml
5555 reports :
Original file line number Diff line number Diff line change 1313 CONTROLLER_GEN_URL : sigs.k8s.io/controller-tools/cmd/controller-gen
1414
1515 CHECK_COMMIT_NAME : check-commit
16- CHECK_COMMIT_VERSION : v5.3 .0
16+ CHECK_COMMIT_VERSION : v5.4 .0
1717 CHECK_COMMIT_URL : github.com/haproxytech/check-commit/v5
1818
1919 BETTERALIGN_NAME : betteralign
You can’t perform that action at this time.
0 commit comments