← 返回首页
Error when triggering a pipeline for a merge request: "The resulting pipeline would have been empty" · python-gitlab/python-gitlab · Discussion #3076 · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus
Discussion options

{{title}}

edited

{{editor}}'s edit

{{actor}} deleted this content .

{{editor}}'s edit

1 You must be logged in to vote
👍 2
All reactions

This doesn't sound like a python-gitlab issue to me.

Please look at: https://docs.gitlab.com/ee/api/merge_requests.html#create-merge-request-pipeline

From the first part of the docs there it says:

Create a new pipeline for a merge request. A pipeline created from this endpoint doesn’t run a regular branch/tag pipeline. To create jobs, configure .gitlab-ci.yml with only: [merge_requests].

Also look at https://docs.gitlab.com/ee/ci/yaml/ and search for merge_requests. Looks like it is required to have in the .gitlab-ci.yml a only: merge_requests in your config.

Any reason to not use: https://python-gitlab.readthedocs.io/en/stable/gl_objects/merge_requests.html#merge-request-pipelines ?

Replies: 2 comments 3 replies

Comment options

{{title}}

Marked as answer
1 You must be logged in to vote
All reactions
3 replies
Comment options

{{title}}

All reactions
Comment options

{{title}}

All reactions
Comment options

{{title}}

All reactions
Answer selected by JohnVillalovos
Comment options

{{title}}

1 You must be logged in to vote
All reactions
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3075 on January 02, 2025 17:27.

Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu

Select a reply

Loading
👍 1 reacted with thumbs up emoji 👎 1 reacted with thumbs down emoji 😄 1 reacted with laugh emoji 🎉 1 reacted with hooray emoji 😕 1 reacted with confused emoji ❤️ 1 reacted with heart emoji 🚀 1 reacted with rocket emoji 👀 1 reacted with eyes emoji

Footer

© 2026 GitHub, Inc.