Skip to content
Snippets Groups Projects

Support CI `paths`, `project`, and `ref` subkeys in `rules:exists`

Merged Leaminn Ma requested to merge ci-rules-exists-add-paths-project-ref into master
6 files
+ 184
13
Compare changes
  • Side-by-side
  • Inline
Files
6
  • Adds the ability to specify the context in which `rules:exists` searches
    for the given file paths. The subkeys `paths`, `project`, and `ref` can
    be specified.  If `project` or `ref` is not defined, the defaults are
    as follows:
    
    For `job:rules:exists`, the default context is the project/ref in
    which the pipeline is running.
    
    For `include:rules:exists`, the default context is the project/ref
    of the file in which the `include` is declared.
    
    These changes are made behind a Feature flag:
    `ci_support_rules_exists_paths_and_project`
---
name: ci_support_rules_exists_paths_and_project
feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/386040
introduced_by_url:
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/453983
milestone: '16.11'
group: group::pipeline authoring
type: gitlab_com_derisk
default_enabled: false
Loading