Add `interruptible` to trigger jobs
When implementing new auto-cancel strategies, we realized that trigger jobs don't accept `interruptible` and they have no effect on pipeline auto-cancellation. In this change, we are copying the `interruptible` keyword from builds to triggers. Also, we are adding test cases for pipeline auto-cancellation to show that trigger jobs do not affect auto-cancellation. Our main goal is that when we implement the "interruptible" auto-cancel strategy, users can also set trigger jobs interruptible or not. Changelog: added
显示
- .rubocop_todo/rspec/feature_category.yml 0 个添加, 1 个删除.rubocop_todo/rspec/feature_category.yml
- app/models/ci/build.rb 0 个添加, 5 个删除app/models/ci/build.rb
- app/models/ci/processable.rb 6 个添加, 0 个删除app/models/ci/processable.rb
- lib/gitlab/ci/config/entry/job.rb 2 个添加, 7 个删除lib/gitlab/ci/config/entry/job.rb
- lib/gitlab/ci/config/entry/processable.rb 8 个添加, 2 个删除lib/gitlab/ci/config/entry/processable.rb
- spec/factories/ci/builds.rb 0 个添加, 6 个删除spec/factories/ci/builds.rb
- spec/factories/ci/processable.rb 10 个添加, 0 个删除spec/factories/ci/processable.rb
- spec/lib/gitlab/ci/config/entry/bridge_spec.rb 7 个添加, 2 个删除spec/lib/gitlab/ci/config/entry/bridge_spec.rb
- spec/lib/gitlab/ci/config/entry/processable_spec.rb 31 个添加, 0 个删除spec/lib/gitlab/ci/config/entry/processable_spec.rb
- spec/lib/gitlab/ci/yaml_processor/test_cases/interruptible_spec.rb 96 个添加, 0 个删除...gitlab/ci/yaml_processor/test_cases/interruptible_spec.rb
- spec/lib/gitlab/ci/yaml_processor_spec.rb 0 个添加, 49 个删除spec/lib/gitlab/ci/yaml_processor_spec.rb
- spec/models/ci/bridge_spec.rb 3 个添加, 2 个删除spec/models/ci/bridge_spec.rb
- spec/services/ci/pipeline_creation/cancel_redundant_pipelines_service_spec.rb 24 个添加, 4 个删除...eline_creation/cancel_redundant_pipelines_service_spec.rb
加载中
想要评论请 注册 或 登录