Skip to content

Usage of include:rules with trigger for parent-child pipelines

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

From: !72968 (comment 719955429)

Does include:rules work also with parent/child pipelines? Could we use:

deployer:
  trigger:
    include:
      - local: deploy.yml
        rules:
          - if: $CI_COMMIT_BRANCH == "main"
      - local: deploy-dry-run.yml
        rules:
          - if: $CI_COMMIT_BRANCH != "main"

If so, should we test and document this behavior?

We need to decide if we should support this or disallow this.

Example 1;

Example 2;

Edited by 🤖 GitLab Bot 🤖