Skip to content
Snippets Groups Projects
Verified Commit d4587736 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

PIPELINE: add-commit job leaves artifact on failure

parent 85b72c19
No related branches found
No related tags found
No related merge requests found
Pipeline #31595 failed
......@@ -26,6 +26,7 @@ add-commit:
- if: $CI_PIPELINE_SOURCE == "pipeline"
- if: $CI_PIPELINE_SOURCE == "web"
stage: commit
needs: [ ]
before_script:
- apk add curl jq
script:
......@@ -54,6 +55,13 @@ add-commit:
# commit the changes (which then triggers the pages job)
- curl --fail-with-body --request POST --header "PRIVATE-TOKEN${COLON} $CIPRIVATETOKEN" --header "Content-Type${COLON} application/json" --data "$DATA" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/commits"
artifacts:
when: on_failure
expire_in: 2 hrs
paths:
- commit.json
- versions.json
pages:
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment