Allow Dynamic pipelines to use project and includes keyword together

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

I have a use case where I would like to trigger a pipeline in another project but also be able to pass the pipeline config file. This would allow me to run a pipeline on another project without executing their pipeline.

A use case for this is to execute scans on projects that have not run a pipeline in a specific number of days. I want to trigger a pipeline that uses a config file that has only the scans. This will allow us to make sure scans are up to date but not impact their application pipeline.

Here is an example of the .gitlab-ci.yml:

stages:
  - setup
  - triggering

generate-config:
  stage: setup
  script:
    - cat allscan.yml > trigger_scan.yml
  artifacts:
    paths:
      - trigger_scan.yml

trigger-service-a:
  stage: triggering
  trigger: 
    project: my/project/path
    include: 
      artifact: trigger_scan.yml
Edited by 🤖 GitLab Bot 🤖