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
Léo-Paul Géneau
gitlab-ce
Commits
b831ef71
Commit
b831ef71
authored
Jul 29, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
They could be nil
parent
755301a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/gitlab/data_builder/pipeline_data_builder.rb
lib/gitlab/data_builder/pipeline_data_builder.rb
+4
-4
No files found.
lib/gitlab/data_builder/pipeline_data_builder.rb
View file @
b831ef71
...
...
@@ -6,9 +6,9 @@ module Gitlab
def
build
(
pipeline
)
{
object_kind:
'pipeline'
,
user:
pipeline
.
user
.
hook_attrs
,
user:
pipeline
.
user
.
try
(
:hook_attrs
)
,
project:
pipeline
.
project
.
hook_attrs
(
backward:
false
),
commit:
pipeline
.
commit
.
hook_attrs
,
commit:
pipeline
.
commit
.
try
(
:hook_attrs
)
,
object_attributes:
hook_attrs
(
pipeline
),
builds:
pipeline
.
builds
.
map
(
&
method
(
:build_hook_attrs
))
}
...
...
@@ -43,8 +43,8 @@ module Gitlab
finished_at:
build
.
finished_at
,
when:
build
.
when
,
manual:
build
.
manual?
,
user:
build
.
user
.
hook_attrs
,
runner:
runner_hook_attrs
(
build
.
runner
),
user:
build
.
user
.
try
(
:hook_attrs
)
,
runner:
build
.
runner
&&
runner_hook_attrs
(
build
.
runner
),
artifacts_file:
{
filename:
build
.
artifacts_file
.
filename
,
size:
build
.
artifacts_size
...
...
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