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:ruleswork 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;
- https://gitlab.com/furkanayhan/test-project/-/blob/fae654d43e220fa38c5348070c680413b7d963a1/.gitlab-ci.yml
- https://gitlab.com/furkanayhan/test-project/-/pipelines/399817448
Example 2;
Edited by 🤖 GitLab Bot 🤖