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
2991f93f
Commit
2991f93f
authored
Aug 29, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename CI config hidden job entry to hidden entry
parent
b1250065
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
lib/gitlab/ci/config/node/hidden.rb
lib/gitlab/ci/config/node/hidden.rb
+1
-1
lib/gitlab/ci/config/node/jobs.rb
lib/gitlab/ci/config/node/jobs.rb
+1
-1
spec/lib/gitlab/ci/config/node/hidden_spec.rb
spec/lib/gitlab/ci/config/node/hidden_spec.rb
+1
-1
spec/lib/gitlab/ci/config/node/jobs_spec.rb
spec/lib/gitlab/ci/config/node/jobs_spec.rb
+1
-1
No files found.
lib/gitlab/ci/config/node/hidden
_job
.rb
→
lib/gitlab/ci/config/node/hidden.rb
View file @
2991f93f
...
...
@@ -5,7 +5,7 @@ module Gitlab
##
# Entry that represents a hidden CI/CD job.
#
class
Hidden
Job
<
Entry
class
Hidden
<
Entry
include
Validatable
validations
do
...
...
lib/gitlab/ci/config/node/jobs.rb
View file @
2991f93f
...
...
@@ -30,7 +30,7 @@ module Gitlab
def
compose!
@config
.
each
do
|
name
,
config
|
node
=
hidden?
(
name
)
?
Node
::
Hidden
Job
:
Node
::
Job
node
=
hidden?
(
name
)
?
Node
::
Hidden
:
Node
::
Job
factory
=
Node
::
Factory
.
new
(
node
)
.
value
(
config
||
{})
...
...
spec/lib/gitlab/ci/config/node/hidden_
job_
spec.rb
→
spec/lib/gitlab/ci/config/node/hidden_spec.rb
View file @
2991f93f
require
'spec_helper'
describe
Gitlab
::
Ci
::
Config
::
Node
::
Hidden
Job
do
describe
Gitlab
::
Ci
::
Config
::
Node
::
Hidden
do
let
(
:entry
)
{
described_class
.
new
(
config
)
}
describe
'validations'
do
...
...
spec/lib/gitlab/ci/config/node/jobs_spec.rb
View file @
2991f93f
...
...
@@ -74,7 +74,7 @@ describe Gitlab::Ci::Config::Node::Jobs do
expect
(
entry
.
descendants
.
first
(
2
))
.
to
all
(
be_an_instance_of
(
Gitlab
::
Ci
::
Config
::
Node
::
Job
))
expect
(
entry
.
descendants
.
last
)
.
to
be_an_instance_of
(
Gitlab
::
Ci
::
Config
::
Node
::
Hidden
Job
)
.
to
be_an_instance_of
(
Gitlab
::
Ci
::
Config
::
Node
::
Hidden
)
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