Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
602724fc
Commit
602724fc
authored
Jun 06, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clone stage_id when retrying a CI/CD job
parent
3ed6c376
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/services/ci/retry_build_service.rb
app/services/ci/retry_build_service.rb
+1
-1
spec/services/ci/retry_build_service_spec.rb
spec/services/ci/retry_build_service_spec.rb
+1
-2
No files found.
app/services/ci/retry_build_service.rb
View file @
602724fc
module
Ci
module
Ci
class
RetryBuildService
<
::
BaseService
class
RetryBuildService
<
::
BaseService
CLONE_ACCESSORS
=
%i[pipeline project ref tag options commands name
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
yaml_variables when environment coverage_regex
description tag_list]
.
freeze
description tag_list]
.
freeze
...
...
spec/services/ci/retry_build_service_spec.rb
View file @
602724fc
...
@@ -18,12 +18,11 @@ describe Ci::RetryBuildService, :services do
...
@@ -18,12 +18,11 @@ describe Ci::RetryBuildService, :services do
updated_at started_at finished_at queued_at erased_by
updated_at started_at finished_at queued_at erased_by
erased_at auto_canceled_by]
.
freeze
erased_at auto_canceled_by]
.
freeze
# TODO, move stage_id accessor to CLONE_ACCESSOR in a follow-up MR.
IGNORE_ACCESSORS
=
IGNORE_ACCESSORS
=
%i[type lock_version target_url base_tags
%i[type lock_version target_url base_tags
commit_id deployments erased_by_id last_deployment project_id
commit_id deployments erased_by_id last_deployment project_id
runner_id tag_taggings taggings tags trigger_request_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
shared_examples
'build duplication'
do
let
(
:build
)
do
let
(
:build
)
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment