Commit 602724fc authored by Grzegorz Bizon's avatar Grzegorz Bizon

Clone stage_id when retrying a CI/CD job

parent 3ed6c376
module Ci
class RetryBuildService < ::BaseService
CLONE_ACCESSORS = %i[pipeline project ref tag options commands name
allow_failure stage stage_idx trigger_request
allow_failure stage_id stage stage_idx trigger_request
yaml_variables when environment coverage_regex
description tag_list].freeze
......
......@@ -18,12 +18,11 @@ describe Ci::RetryBuildService, :services do
updated_at started_at finished_at queued_at erased_by
erased_at auto_canceled_by].freeze
# TODO, move stage_id accessor to CLONE_ACCESSOR in a follow-up MR.
IGNORE_ACCESSORS =
%i[type lock_version target_url base_tags
commit_id deployments erased_by_id last_deployment project_id
runner_id tag_taggings taggings tags trigger_request_id
user_id auto_canceled_by_id retried stage_id].freeze
user_id auto_canceled_by_id retried].freeze
shared_examples 'build duplication' do
let(:build) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment