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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
6b07a5b2
Commit
6b07a5b2
authored
Jul 19, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve code design
parent
276d28a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/models/ci/build.rb
app/models/ci/build.rb
+1
-0
lib/ci/gitlab_ci_yaml_processor.rb
lib/ci/gitlab_ci_yaml_processor.rb
+1
-1
No files found.
app/models/ci/build.rb
View file @
6b07a5b2
...
@@ -457,6 +457,7 @@ module Ci
...
@@ -457,6 +457,7 @@ module Ci
def
build_attributes_from_config
def
build_attributes_from_config
return
{}
unless
pipeline
.
config_processor
return
{}
unless
pipeline
.
config_processor
pipeline
.
config_processor
.
build_attributes
(
name
)
pipeline
.
config_processor
.
build_attributes
(
name
)
end
end
end
end
...
...
lib/ci/gitlab_ci_yaml_processor.rb
View file @
6b07a5b2
...
@@ -44,7 +44,7 @@ module Ci
...
@@ -44,7 +44,7 @@ module Ci
end
end
def
builds_for_ref
(
ref
,
tag
=
false
,
trigger_request
=
nil
)
def
builds_for_ref
(
ref
,
tag
=
false
,
trigger_request
=
nil
)
jobs_for_ref
(
ref
,
tag
,
trigger_request
).
map
do
|
name
,
job
|
jobs_for_ref
(
ref
,
tag
,
trigger_request
).
map
do
|
name
,
_
|
build_attributes
(
name
)
build_attributes
(
name
)
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