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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
03ed05b0
Commit
03ed05b0
authored
May 13, 2021
by
Matija Čupić
Committed by
Douglas Barbosa Alexandre
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document feature flag
parent
a4c20d51
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
app/controllers/projects/pipelines_controller.rb
app/controllers/projects/pipelines_controller.rb
+1
-1
config/feature_flags/development/background_pipeline_retry_endpoint.yml
..._flags/development/background_pipeline_retry_endpoint.yml
+8
-0
lib/gitlab/ci/features.rb
lib/gitlab/ci/features.rb
+4
-0
No files found.
app/controllers/projects/pipelines_controller.rb
View file @
03ed05b0
...
...
@@ -176,7 +176,7 @@ class Projects::PipelinesController < Projects::ApplicationController
end
def
retry
if
Feature
.
enabled?
(
:background_pipeline_retry_endpoint
,
@project
)
if
Gitlab
::
Ci
::
Features
.
background_pipeline_retry_endpoint?
(
@project
)
::
Ci
::
RetryPipelineWorker
.
perform_async
(
pipeline
.
id
,
current_user
.
id
)
# rubocop:disable CodeReuse/Worker
else
pipeline
.
retry_failed
(
current_user
)
...
...
config/feature_flags/development/background_pipeline_retry_endpoint.yml
0 → 100644
View file @
03ed05b0
---
name
:
background_pipeline_retry_endpoint
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61270
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/330915
milestone
:
'
13.12'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
false
lib/gitlab/ci/features.rb
View file @
03ed05b0
...
...
@@ -54,6 +54,10 @@ module Gitlab
def
self
.
gldropdown_tags_enabled?
::
Feature
.
enabled?
(
:gldropdown_tags
,
default_enabled: :yaml
)
end
def
self
.
background_pipeline_retry_endpoint?
(
project
)
::
Feature
.
enabled?
(
:background_pipeline_retry_endpoint
,
project
)
end
end
end
end
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