-
- Downloads
There was an error fetching the commit references. Please try again later.
Implement the implied CI/CD config for AutoDevOps
Behind an application setting, which defaults to false, this commit implements the implied CI/CD config. Which means that in the case we can't find the `.gitlab-ci.yml` on the commit we want to start a pipeline for, we fall back to an implied configuration. For now the Bash template has been copied to `Auto-Devops.gitlab-ci.yml` so the tests actually work. Fixes #34777
Showing
- app/helpers/application_settings_helper.rb 1 addition, 0 deletionsapp/helpers/application_settings_helper.rb
- app/models/ci/pipeline.rb 16 additions, 6 deletionsapp/models/ci/pipeline.rb
- app/models/project.rb 6 additions, 0 deletionsapp/models/project.rb
- app/models/project_auto_devops.rb 3 additions, 0 deletionsapp/models/project_auto_devops.rb
- app/views/admin/application_settings/_form.html.haml 7 additions, 1 deletionapp/views/admin/application_settings/_form.html.haml
- changelogs/unreleased/zj-auto-devops-table.yml 5 additions, 0 deletionschangelogs/unreleased/zj-auto-devops-table.yml
- config/initializers/0_inflections.rb 6 additions, 1 deletionconfig/initializers/0_inflections.rb
- db/migrate/20170824101926_add_auto_devops_enabled_to_application_settings.rb 15 additions, 0 deletions...101926_add_auto_devops_enabled_to_application_settings.rb
- db/migrate/20170828093725_create_project_auto_dev_ops.rb 24 additions, 0 deletionsdb/migrate/20170828093725_create_project_auto_dev_ops.rb
- db/schema.rb 18 additions, 5 deletionsdb/schema.rb
- spec/factories/project_auto_devops.rb 6 additions, 0 deletionsspec/factories/project_auto_devops.rb
- spec/models/application_setting_spec.rb 1 addition, 0 deletionsspec/models/application_setting_spec.rb
- spec/models/ci/pipeline_spec.rb 39 additions, 5 deletionsspec/models/ci/pipeline_spec.rb
- spec/models/project_auto_devops_spec.rb 12 additions, 0 deletionsspec/models/project_auto_devops_spec.rb
- vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml 35 additions, 0 deletionsvendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
app/models/project_auto_devops.rb
0 → 100644
spec/factories/project_auto_devops.rb
0 → 100644
spec/models/project_auto_devops_spec.rb
0 → 100644
Please register or sign in to comment