-
- Downloads
There was an error fetching the commit references. Please try again later.
Allow to specify flexible list of types in yaml
``` 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" ``` This 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.
Showing
- 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 47 additions, 39 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/commits/_commit.html.haml 4 additions, 0 deletionsapp/views/commits/_commit.html.haml
- app/views/commits/show.html.haml 2 additions, 2 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