Support rules:exists subkeys `paths`, `project`, and `ref`
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` is specified but not `ref`, the default `ref` is the project's HEAD. If `project` is not specified, 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`
上级
b0cee131
No related branches found
No related tags found
显示
- app/assets/javascripts/editor/schema/ci.json 53 个添加, 4 个删除app/assets/javascripts/editor/schema/ci.json
- config/feature_flags/gitlab_com_derisk/ci_support_rules_exists_paths_and_project.yml 9 个添加, 0 个删除..._com_derisk/ci_support_rules_exists_paths_and_project.yml
- doc/ci/yaml/includes.md 33 个添加, 11 个删除doc/ci/yaml/includes.md
- doc/ci/yaml/index.md 83 个添加, 1 个删除doc/ci/yaml/index.md
- doc/user/group/compliance_pipelines.md 32 个添加, 0 个删除doc/user/group/compliance_pipelines.md
- lib/gitlab/ci/build/rules/rule/clause/exists.rb 95 个添加, 2 个删除lib/gitlab/ci/build/rules/rule/clause/exists.rb
- lib/gitlab/ci/config/entry/include/rules/rule.rb 19 个添加, 4 个删除lib/gitlab/ci/config/entry/include/rules/rule.rb
- lib/gitlab/ci/config/entry/rules/rule.rb 25 个添加, 7 个删除lib/gitlab/ci/config/entry/rules/rule.rb
- lib/gitlab/ci/config/entry/rules/rule/exists.rb 69 个添加, 0 个删除lib/gitlab/ci/config/entry/rules/rule/exists.rb
- lib/gitlab/config/entry/configurable.rb 4 个添加, 0 个删除lib/gitlab/config/entry/configurable.rb
- spec/frontend/editor/schema/ci/yaml_tests/negative_tests/rules.yml 26 个添加, 1 个删除...tend/editor/schema/ci/yaml_tests/negative_tests/rules.yml
- spec/frontend/editor/schema/ci/yaml_tests/positive_tests/rules.yml 24 个添加, 1 个删除...tend/editor/schema/ci/yaml_tests/positive_tests/rules.yml
- spec/lib/gitlab/ci/build/rules/rule/clause/exists_spec.rb 236 个添加, 33 个删除spec/lib/gitlab/ci/build/rules/rule/clause/exists_spec.rb
- spec/lib/gitlab/ci/config/entry/include/rules/rule_spec.rb 94 个添加, 9 个删除spec/lib/gitlab/ci/config/entry/include/rules/rule_spec.rb
- spec/lib/gitlab/ci/config/entry/rules/rule/exists_spec.rb 214 个添加, 0 个删除spec/lib/gitlab/ci/config/entry/rules/rule/exists_spec.rb
- spec/lib/gitlab/ci/config/entry/rules/rule_spec.rb 185 个添加, 24 个删除spec/lib/gitlab/ci/config/entry/rules/rule_spec.rb
加载中
想要评论请 注册 或 登录