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
9686a4f2
Commit
9686a4f2
authored
Jul 05, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove code creating job hash from legacy CI config
parent
cf53d798
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
gitlab_ci_yaml_processor.rb
lib/ci/gitlab_ci_yaml_processor.rb
+3
-2
config.rb
lib/gitlab/ci/config.rb
+1
-1
No files found.
lib/ci/gitlab_ci_yaml_processor.rb
View file @
9686a4f2
...
...
@@ -68,8 +68,9 @@ module Ci
@jobs
=
{}
@config
.
except!
(
*
ALLOWED_YAML_KEYS
)
@config
.
each
{
|
name
,
param
|
add_job
(
name
,
param
)
}
@ci_config
.
jobs
.
each
do
|
name
,
param
|
add_job
(
name
,
param
)
end
raise
ValidationError
,
"Please define at least one job"
if
@jobs
.
none?
end
...
...
lib/gitlab/ci/config.rb
View file @
9686a4f2
...
...
@@ -8,7 +8,7 @@ module Gitlab
# Temporary delegations that should be removed after refactoring
#
delegate
:before_script
,
:image
,
:services
,
:after_script
,
:variables
,
:stages
,
:cache
,
to: :@global
:stages
,
:cache
,
:jobs
,
to: :@global
def
initialize
(
config
)
@config
=
Loader
.
new
(
config
).
load!
...
...
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