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
5ced2d8d
Commit
5ced2d8d
authored
Aug 23, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename CI/CD job triggering policy class to Policy
parent
d546f7d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
lib/gitlab/ci/config/entry/job.rb
lib/gitlab/ci/config/entry/job.rb
+2
-2
lib/gitlab/ci/config/entry/policy.rb
lib/gitlab/ci/config/entry/policy.rb
+1
-1
spec/lib/gitlab/ci/config/entry/policy_spec.rb
spec/lib/gitlab/ci/config/entry/policy_spec.rb
+2
-2
No files found.
lib/gitlab/ci/config/entry/job.rb
View file @
5ced2d8d
...
@@ -59,10 +59,10 @@ module Gitlab
...
@@ -59,10 +59,10 @@ module Gitlab
entry
:services
,
Entry
::
Services
,
entry
:services
,
Entry
::
Services
,
description:
'Services that will be used to execute this job.'
description:
'Services that will be used to execute this job.'
entry
:only
,
Entry
::
Trigger
,
entry
:only
,
Entry
::
Policy
,
description:
'Refs policy this job will be executed for.'
description:
'Refs policy this job will be executed for.'
entry
:except
,
Entry
::
Trigger
,
entry
:except
,
Entry
::
Policy
,
description:
'Refs policy this job will be executed for.'
description:
'Refs policy this job will be executed for.'
entry
:variables
,
Entry
::
Variables
,
entry
:variables
,
Entry
::
Variables
,
...
...
lib/gitlab/ci/config/entry/
trigger
.rb
→
lib/gitlab/ci/config/entry/
policy
.rb
View file @
5ced2d8d
...
@@ -5,7 +5,7 @@ module Gitlab
...
@@ -5,7 +5,7 @@ module Gitlab
##
##
# Entry that represents a trigger policy for the job.
# Entry that represents a trigger policy for the job.
#
#
class
Trigger
<
Node
class
Policy
<
Node
include
Validatable
include
Validatable
validations
do
validations
do
...
...
spec/lib/gitlab/ci/config/entry/
trigger
_spec.rb
→
spec/lib/gitlab/ci/config/entry/
policy
_spec.rb
View file @
5ced2d8d
require
'spec_helper'
require
'spec_helper'
describe
Gitlab
::
Ci
::
Config
::
Entry
::
Trigger
do
describe
Gitlab
::
Ci
::
Config
::
Entry
::
Policy
do
let
(
:entry
)
{
described_class
.
new
(
config
)
}
let
(
:entry
)
{
described_class
.
new
(
config
)
}
describe
'validations'
do
describe
'validations'
do
...
@@ -48,7 +48,7 @@ describe Gitlab::Ci::Config::Entry::Trigger do
...
@@ -48,7 +48,7 @@ describe Gitlab::Ci::Config::Entry::Trigger do
describe
'#errors'
do
describe
'#errors'
do
it
'saves errors'
do
it
'saves errors'
do
expect
(
entry
.
errors
)
expect
(
entry
.
errors
)
.
to
include
'
trigger
config should be an array of strings or regexps'
.
to
include
'
policy
config should be an array of strings or regexps'
end
end
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