All Questions
Tagged with merge-request gitlab-ci
25 questions
1
vote
1
answer
49
views
Gitlab pipeline is not starting when create merge request
I need to trigger the gitlab pipeline automatically when creating a Merge Request. This pipeline should start automatically before clicking on merge. I have written this pipeline but not working as I ...
1
vote
1
answer
941
views
Trigger jobs on a CI/CD pipeline on merge of the merge request
I am currently working on a CI/CD pipeline on gitlab. I have 5 different stages :
install
test
package
deploy
cleanup
What I want to do is to trigger the cleanup jobs that clean the deployed dev ...
0
votes
0
answers
113
views
How to run a job only once a MR gets merged and know what MR got merged?
I'm trying to run a GitLab pipeline job to move a Trello card to a different list, when the corresponding MR gets merged, but the job needs the MR's IID, to fetch its description, which contains the ...
1
vote
0
answers
203
views
Merge Request Job stuck in Gitlab Pipeline
This job is stuck because of one of the following problems. There are no active runners online, no runners for the protected branch, or no runners that match all of the job's tags: $RUNNER_TAG
Go to ...
1
vote
1
answer
234
views
Automatic merge of an MR on GitLab
I have recently stumbled upon a use-case where I want to make MRs into my master branch automatically. Every one of those MRs would edit a documentation file which does not in any way affect business ...
0
votes
2
answers
239
views
GitLab prevent commits to existing merge request
I created a merge request with 10 commits from the feature branch to the main branch. The merge request is not yet closed, mean while created another commit in the feature branch. New commit is ...
0
votes
1
answer
544
views
Gitlab Workflow Config Prevent Duplicate Pipelines, Enable Branch, MR & Schedule Pipelines
The idea is to allow the following functions in the Gitlab Workflow config -
Branch pipelines
MR pipelines with MR labels
Schedule pipelines
And to run without creating duplicate pipelines (branch ...
0
votes
0
answers
2k
views
Sonarqube comment on MR Gitlab
I'm trying to integrate Sonarqube's comment into GitLab's MR. But Unable to find a concrete document to do so. Attached is the reference on localhost
I tried multiple methods to pick merge_requests in ...
1
vote
1
answer
816
views
GitLab Secrets Detection - Pipeline doesn't fail - Only checks last commit
In order to implement secrets detector via pipeline on merge requests in my GitLab repository, I followed this document from GitLab here: "Enable Secret Detection | Edit the .gitlab.ci.yml file ...
1
vote
1
answer
1k
views
Is it possible to run a gitlab pipeline job only once, when a merge request is created?
Is it possible to configure a job in a gitlab pipeline to only run once, when a merge request is created?
Using the rule "
'$CI_PIPELINE_SOURCE == "merge_request_event"'
" does ...
1
vote
1
answer
831
views
MR squash is removing commit message details
I was working in a branch and my commit had a very detailed message. The format was:
Title
Details (multiple lines).
I created an MR but when the MR was merged I can see the merge commit and my new ...
2
votes
1
answer
789
views
how to make sure gitlab MR contains unit testcase or not
I want to enforce that each GitLab MR should contain unit test case(s).
how to make sure GitLab MR contains unit test case or not
Thank you!
3
votes
0
answers
267
views
Gitlab duplicate pipelines for merged results and merge train
When I enable both merged results pipeline and merge trains, two pipelines will be triggered, one for merged results and the other for merge train.
My question is that, why do we even bother waste ...
0
votes
1
answer
678
views
Count number of pipelines in a merge request in GitLab
In my .gitlab-ci.yml, I would like to give an incremental ID to every pipeline executed, but only relative to the merge request (the pipeline-ID is too large for my purposes), so the first pipeline ...
1
vote
1
answer
2k
views
Gitlab ci rule for merge request event not works as expected
I have a gitlab pipeline and I'm trying to set a rule for a merge request event, i want to fire the rule when i have a merge request and the source branch is different from main and develop. I do that ...
5
votes
1
answer
2k
views
GitLab-CI: Why does a Merge Results pipeline build an unchanged result twice?
I'm trialing the "Ultimate" version of GitLab, in particular the Merge Results Pipeline feature, along with the related Merge Trains feature.
I have Merge Results pipeline & Merge Trains ...
1
vote
0
answers
2k
views
GitLab CI pipeline with failed job shows as "waiting for manual action" instead of "failed"
On commit 6daa4065 there are two jobs, build binaries and build manual binaries. The first job runs for the main branch and tags. The second branch runs for all other refs but is manual. The status of ...
5
votes
1
answer
2k
views
Merge request approval invalidates after new push
In gitlab is there a setting that affects if an approval for an MR is invalidated after a new commit is pushed? I have seen that in some setups a new commit invalidates the approval but in others not ...
1
vote
1
answer
3k
views
Is there a way to check for a gitlab merge request approval status and then trigger the next stage in CI
I have a stage1 where it creates a merge request then after the merge request is approved by 3 approvers I manually trigger the stage2.
But, I want to find a way where I can check the merge request ...
2
votes
1
answer
4k
views
Run gitlab pipeline only for commits
Currently gitlab runs a pipeline when creating a merge request + branch with the GUI.
Is it possible to skip this pipeline, since it's only repeats the last pipeline from the default branch?
We tried ...
15
votes
2
answers
17k
views
In gitlab, how to set "pipelines must succeed" only for specific branches but not others for a merge request to merge?
In the merge checks settings, I have enabled the "pipelines must succeed" option:
But the branches without any jobs are stuck at merge by saying "waiting for pipelines status" and ...
5
votes
0
answers
1k
views
gitlab ci trigger pipeline after updating labels in merge request
If I created the MR with the bug label, it will trigger the label script;
If I created the MR without the label, it will not trigger; even if I add the label later on the MR view, the CI will not ...
0
votes
0
answers
234
views
Trigger a new pipeline on merge request creation in gitlab-ci
i have a mono repo structure and created a pipeline that only runs for specific sub folders which have changed.
Now if i change something in Context1 and the pipeline does not succeed, and then change ...
1
vote
1
answer
63
views
Is there a way to trigger different commit builds on merge requests based on different file changes in GitlabCI?
We are migrating from tfs to gitlab. Ours is a huge repository with multiple technology stack. And each solution has its own unit tests associated. We are planning to allow merge requests to ...
1
vote
0
answers
2k
views
How to use a Gitlab Merge Request to finish a release/hotfix branch using Gitflow?
So our company is using Gitflow. Can't currently change that. I have looked into github-flow and gitlab-flow, but we can't currently move to a different model.
When finishing a hotfix or release ...