Pre-create all builds for Pipeline when a trigger is received
This change simplifies a Pipeline processing by introducing a special new status: created. This status is used for all builds that are created for a pipeline. We are then processing next stages and queueing some of the builds (created -> pending) or skipping them (created -> skipped). This makes it possible to simplify and solve a few ordering problems with how previously builds were scheduled. This also allows us to visualise a full pipeline (with created builds). This also removes an after_touch used for updating a pipeline state parameters. Right now in various places we explicitly call a reload_status! on pipeline to force it to be updated and saved.
显示
- CHANGELOG 1 个添加, 0 个删除CHANGELOG
- app/controllers/projects/builds_controller.rb 1 个添加, 1 个删除app/controllers/projects/builds_controller.rb
- app/controllers/projects/commit_controller.rb 2 个添加, 2 个删除app/controllers/projects/commit_controller.rb
- app/controllers/projects/merge_requests_controller.rb 2 个添加, 2 个删除app/controllers/projects/merge_requests_controller.rb
- app/controllers/projects/pipelines_controller.rb 1 个添加, 1 个删除app/controllers/projects/pipelines_controller.rb
- app/models/ci/build.rb 3 个添加, 9 个删除app/models/ci/build.rb
- app/models/ci/pipeline.rb 27 个添加, 57 个删除app/models/ci/pipeline.rb
- app/models/commit_status.rb 23 个添加, 8 个删除app/models/commit_status.rb
- app/models/concerns/statuseable.rb 19 个添加, 12 个删除app/models/concerns/statuseable.rb
- app/services/ci/create_builds_service.rb 0 个添加, 62 个删除app/services/ci/create_builds_service.rb
- app/services/ci/create_pipeline_builds_service.rb 42 个添加, 0 个删除app/services/ci/create_pipeline_builds_service.rb
- app/services/ci/create_pipeline_service.rb 73 个添加, 22 个删除app/services/ci/create_pipeline_service.rb
- app/services/ci/create_trigger_request_service.rb 4 个添加, 13 个删除app/services/ci/create_trigger_request_service.rb
- app/services/ci/process_pipeline_service.rb 77 个添加, 0 个删除app/services/ci/process_pipeline_service.rb
- app/services/create_commit_builds_service.rb 0 个添加, 69 个删除app/services/create_commit_builds_service.rb
- app/services/git_push_service.rb 1 个添加, 1 个删除app/services/git_push_service.rb
- app/services/git_tag_push_service.rb 1 个添加, 1 个删除app/services/git_tag_push_service.rb
- app/views/projects/ci/pipelines/_pipeline.html.haml 1 个添加, 1 个删除app/views/projects/ci/pipelines/_pipeline.html.haml
- app/views/projects/commit/_pipeline.html.haml 2 个添加, 2 个删除app/views/projects/commit/_pipeline.html.haml
- db/migrate/20160716115711_add_queued_at_to_ci_builds.rb 9 个添加, 0 个删除db/migrate/20160716115711_add_queued_at_to_ci_builds.rb
加载中
想要评论请 注册 或 登录