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
25ae448b
Commit
25ae448b
authored
Aug 18, 2020
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable `ci_if_parenthesis_enabled` feature flag
- Add feature flag definition - Mark it as default enabled
parent
603bce88
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
config/feature_flags/development/ci_if_parenthesis_enabled.yml
...g/feature_flags/development/ci_if_parenthesis_enabled.yml
+7
-0
doc/ci/variables/README.md
doc/ci/variables/README.md
+2
-2
lib/gitlab/ci/features.rb
lib/gitlab/ci/features.rb
+1
-1
No files found.
config/feature_flags/development/ci_if_parenthesis_enabled.yml
0 → 100644
View file @
25ae448b
---
name
:
ci_if_parenthesis_enabled
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37574
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/238174
group
:
group::ci
type
:
development
default_enabled
:
true
\ No newline at end of file
doc/ci/variables/README.md
View file @
25ae448b
...
@@ -760,9 +760,9 @@ Examples:
...
@@ -760,9 +760,9 @@ Examples:
-
`($VARIABLE1 =~ /^content.*/ || $VARIABLE2 =~ /thing$/) && $VARIABLE3`
-
`($VARIABLE1 =~ /^content.*/ || $VARIABLE2 =~ /thing$/) && $VARIABLE3`
-
`$CI_COMMIT_BRANCH == "my-branch" || (($VARIABLE1 == "thing" || $VARIABLE2 == "thing") && $VARIABLE3)`
-
`$CI_COMMIT_BRANCH == "my-branch" || (($VARIABLE1 == "thing" || $VARIABLE2 == "thing") && $VARIABLE3)`
The feature is currently deployed behind a feature flag that is
**
dis
abled by default**
.
The feature is currently deployed behind a feature flag that is
**
en
abled by default**
.
[
GitLab administrators with access to the GitLab Rails console
](
../../administration/feature_flags.md
)
[
GitLab administrators with access to the GitLab Rails console
](
../../administration/feature_flags.md
)
can opt to
en
able it for your instance.
can opt to
dis
able it for your instance.
To enable it:
To enable it:
...
...
lib/gitlab/ci/features.rb
View file @
25ae448b
...
@@ -57,7 +57,7 @@ module Gitlab
...
@@ -57,7 +57,7 @@ module Gitlab
end
end
def
self
.
ci_if_parenthesis_enabled?
def
self
.
ci_if_parenthesis_enabled?
::
Feature
.
enabled?
(
:ci_if_parenthesis_enabled
)
::
Feature
.
enabled?
(
:ci_if_parenthesis_enabled
,
default_enabled:
true
)
end
end
def
self
.
allow_to_create_merge_request_pipelines_in_target_project?
(
target_project
)
def
self
.
allow_to_create_merge_request_pipelines_in_target_project?
(
target_project
)
...
...
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