Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Caosdb Versions
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
Caosdb Versions
Commits
d4587736
Verified
Commit
d4587736
authored
Dec 9, 2022
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
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
Dec 9, 2022
Stage: info
Stage: commit
Stage: pages
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-0
8 additions, 0 deletions
.gitlab-ci.yml
with
8 additions
and
0 deletions
.gitlab-ci.yml
+
8
−
0
View file @
d4587736
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment