Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cb1d5753
Commit
cb1d5753
authored
Aug 07, 2020
by
Ben Bodenmiller
Committed by
Marcel Amirault
Aug 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve details on duplicate pipelines
parent
7b67520a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
doc/ci/merge_request_pipelines/index.md
doc/ci/merge_request_pipelines/index.md
+4
-4
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+4
-0
No files found.
doc/ci/merge_request_pipelines/index.md
View file @
cb1d5753
...
...
@@ -214,13 +214,13 @@ which will help you get your starting configuration correct.
If you are seeing two pipelines when using
`only/except`
, please see the caveats
related to using
`only/except`
above (or, consider moving to
`rules`
).
It is not possible to run a job for branch pipelines first, then only for merge request
pipelines after the merge request is created (skipping the duplicate branch pipeline). See
the
[
related issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/201845
)
for more details.
### Two pipelines created when pushing an invalid CI configuration file
Pushing to a branch with an invalid CI configuration file can trigger
the creation of two types of failed pipelines. One pipeline is a failed merge request
pipeline, and the other is a failed branch pipeline, but both are caused by the same
invalid configuration.
In rare cases, duplicate pipelines are created.
See
[
this issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/201845
)
for details.
doc/ci/yaml/README.md
View file @
cb1d5753
...
...
@@ -1250,6 +1250,10 @@ are permitted. Allowing only merge request pipelines, or only branch pipelines,
eliminates duplicated pipelines. Alternatively, you can rewrite the rules to be
stricter, or avoid using a final
`when`
(
`always`
,
`on_success`
or
`delayed`
).
It is not possible to run a job for branch pipelines first, then only for merge request
pipelines after the merge request is created (skipping the duplicate branch pipeline). See
the
[
related issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/201845
)
for more details.
Also, we don't recommend mixing
`only/except`
jobs with
`rules`
jobs in the same pipeline.
It may not cause YAML errors, but debugging the exact execution behavior can be complex
due to the different default behaviors of
`only/except`
and
`rules`
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment