How to trigger downstream pipeline in gitlab ci using different yml file?

Viewed 1045

I need to use specific yml file to trigger downstream project.

So, I have following in upstream project:

trigger-integration-test:
  stage: test
  trigger:
      project: platform/api-testing

but it uses .gitlab-ci.yml in the root directory but I need to use /path/to/different/.diffferent-gitlab-ci.yml

1 Answers

You can work with a parent-child pipeline here:

trigger-integration-test:
  stage: test
  trigger:
    include:
      - project: 'platform/api-testing'
        file: '/path/to/different/.diffferent-gitlab-ci.yml'
Related