Questions tagged [gitlab-ci-trigger]
9 questions
4
votes
3 answers
Gitlab CI multi project pipeline
In Gitlab I am trying to trigger child pipeline from parent pipeline. The child pipeline is within the same project under subdirectory. However, while triggering at the time of merge request event it is giving error "downstream pipeline cannot be…

mair
- 325
- 1
- 5
- 14
3
votes
3 answers
Gitlab-ci stage order ignored when rules includes changes
consider the following gitlab-ci.yaml, for a mono repo with multiple microfrontends
stages:
- build
- deploy
build:app1:
stage: build
script:
- sleep 30
- mkdir dist1
- touch dist1/output1.html
rules:
- if:…

Joran Beasley
- 110,522
- 12
- 160
- 179
2
votes
2 answers
Check that gitlab branch has changes before running jobs
In order to stop the current default Gitlab behaviour of starting pipelines on branch creation I am trying to add a check in each job so that only merge requests trigger jobs when they have changes.
This is what I got so far:
rules:
- if:…

ifrances
- 21
- 4
2
votes
2 answers
How to exclude gitlab-ci.yml changes from triggering a job
I am unable to find a solution for how to ignore changes made in .gitlab-ci.yml to trigger a job. So far I have tried the below options:
except:
changes:
- .gitlab-ci.yml
and
only
- Branch A
but every time i make changes in .gitlab.ci-yml…

Sushil.R
- 97
- 2
- 11
1
vote
0 answers
GitLab CI/CD: Trigger pipeline only when a specific extension was added to a folder AND Merge Request
On my gitlab repo I have to trigger pipeline only when a specific folder have changes AND when it's a Merge request (both condition). Especially on .zip file extension, i-e, add a new zip file in this folder, create a Merge request, then run the…

french_dev
- 2,117
- 10
- 44
- 85
0
votes
0 answers
How to pass artifacts between repos in multi-project pipelines in gitlab?
I have a main project that has dependencies from other projects, say project A and project B that live in other repos. I want to trigger those dependencies to build from the main .gitlab-ci.yml and then get those build artifacts back in the main…

grace9
- 47
- 6
0
votes
0 answers
Gitlabci.yml include block with if conditions not picking up the right template file
I am using gitlabci.yaml to import some existing deployment templates-- a.yml and b.yml.
I am trying to control this using a flag RELEASE_PIPELINE, which if true should pickup template b.yml and if false should pickup a.yml.
Below is how to the…

B.T Anand
- 549
- 1
- 13
- 26
0
votes
3 answers
Gtilab pipeline trigger don't work over webhook (returns 404)
I have created a custom trigger form my project in GitLab and it works fine on branch 'main' via curl (with POST queries):
curl -X POST -F token=%myToken% -F ref=main https://%mygitlab%/api/v4/projects/82/trigger/pipeline
OR:
curl --request POST…

Tadeusz
- 6,453
- 9
- 40
- 58
0
votes
1 answer
Gitlab-ci always lists the same user as triggerer
I've got a project involving multiple GitLab users, all at ownership level. I've got a gitlab-ci.yml file that creates a new tag and pushes the new tag to the repository. This was set up using a deploy key and ssh. The problem is, no matter who…

Alex K
- 129
- 6