Skip to content
Snippets Groups Projects
Verified Commit 482dd772 authored by Anton Tetov Johansson's avatar Anton Tetov Johansson
Browse files

install git on failed quality check for artifact

parent 2ed866ef
No related branches found
No related tags found
No related merge requests found
Pipeline #1677 passed with warnings
......@@ -36,7 +36,6 @@ stages:
<<: *install-deps
image: python:3.9-slim-bullseye
stage: quality
allow_failure: true
.test-template: &test
<<: *install-deps
......@@ -48,6 +47,21 @@ stages:
run-pre-commit:
<<: *quality
script: make check
allow_failure: true
after_script:
- mkdir -pv changed
- |
test $CI_JOB_STATUS -eq "failed" &&
apt install git -y &&
git status --porcelain
| awk 'match($1,"M"){print $2}'
| xargs -r cp -vt changed
artifacts:
name: "$CI_JOB_NAME"
expire_in: 7 days
paths:
- "changed/*"
when: on_failure
# Tests jobs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment