Relative Content

Tag Archive for gitlabgitlab-ci

Gitlab ci use compare_to for CI_OPEN_MERGE_REQUESTS

[[service]]:test-branches: <<: *test_stage cache: key: “${{CI_COMMIT_REF_NAME}-${CI_JOB_STAGE}-[[service]]}” paths: – services/[[service]]/vendor/ rules: – if: $CI_OPEN_MERGE_REQUESTS changes: compare_to: $CI_TARGET_BRANCH_NAME paths: – services/[ [ service ] ]/**/* – if: $CI_COMMIT_BRANCH changes: compare_to: ‘refs/heads/master’ paths: – services/[[service]]/**/* I basically want to create a job, based on above condition, if there are any merger equest open(in my case 1 per source […]

Trigger a pipeline from any project in a group

I have, in GitLab, a group containing multiple projects and I also have a .gitlab-ci.yml file that is in one of the projects and that runs each time a change is pushed. However, I would like to be able to run this exact file in any of the projects in my group.