BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
hidden.rb
lib/gitlab/ci/config/node/hidden.rb
+1
-1
jobs.rb
lib/gitlab/ci/config/node/jobs.rb
+1
-1
hidden_spec.rb
spec/lib/gitlab/ci/config/node/hidden_spec.rb
+1
-1
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