-
- Downloads
There was an error fetching the commit references. Please try again later.
Merge branch 'build-types' into 'master'
Allow to specify flexible list of types in yaml First part of flexible pipeline build in GitLab CI Having following `.gitlab-ci.yml`: ``` types: - test - deploy - notify rspec: script: "rspec" rubocop: script: "rubocop" staging: type: deploy script: "echo deploy" only: - master production: type: deploy script: "echo production" only: - tags dockerhub: type: notify script: "curl http://docker/hub/web/hook" downstream: type: notify script: "curl http://build/downstream/jobs" ``` GitLab CI will trigger two test jobs in parallel, when finished it will trigged either staging or production, when finished it will trigger dockerhub and downstream in parallel. The UI (screenshots are not for above YAML):   TODO: - [x] Implement in CI - [x] Specs - [x] Changelog - [x] CI tests - [ ] Documentation /cc @vsizov @sytses @dzaporozhets See merge request !198
No related branches found
No related tags found
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- app/controllers/lints_controller.rb 1 addition, 1 deletionapp/controllers/lints_controller.rb
- app/models/build.rb 2 additions, 2 deletionsapp/models/build.rb
- app/models/commit.rb 48 additions, 36 deletionsapp/models/commit.rb
- app/services/create_commit_service.rb 0 additions, 4 deletionsapp/services/create_commit_service.rb
- app/views/builds/_build.html.haml 2 additions, 8 deletionsapp/views/builds/_build.html.haml
- app/views/builds/show.html.haml 1 addition, 1 deletionapp/views/builds/show.html.haml
- app/views/commits/_commit.html.haml 4 additions, 0 deletionsapp/views/commits/_commit.html.haml
- app/views/commits/show.html.haml 3 additions, 3 deletionsapp/views/commits/show.html.haml
- app/views/lints/_create.html.haml 17 additions, 31 deletionsapp/views/lints/_create.html.haml
- db/migrate/20150710113836_add_job_type_to_builds.rb 5 additions, 0 deletionsdb/migrate/20150710113836_add_job_type_to_builds.rb
- db/migrate/20150710113851_migrate_deploy_to_job_type_for_builds.rb 6 additions, 0 deletions...e/20150710113851_migrate_deploy_to_job_type_for_builds.rb
- db/schema.rb 2 additions, 1 deletiondb/schema.rb
- lib/gitlab_ci_yaml_processor.rb 28 additions, 18 deletionslib/gitlab_ci_yaml_processor.rb
- spec/lib/gitlab_ci_yaml_processor_spec.rb 65 additions, 63 deletionsspec/lib/gitlab_ci_yaml_processor_spec.rb
- spec/models/commit_spec.rb 13 additions, 4 deletionsspec/models/commit_spec.rb
- spec/services/create_commit_service_spec.rb 0 additions, 26 deletionsspec/services/create_commit_service_spec.rb
- spec/support/gitlab_stubs/gitlab_ci.yml 15 additions, 1 deletionspec/support/gitlab_stubs/gitlab_ci.yml
Please register or sign in to comment