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
8012abf4
Commit
8012abf4
authored
Nov 10, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failures [ci skip]
parent
6f6119b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
app/serializers/pipeline_action_entity.rb
app/serializers/pipeline_action_entity.rb
+2
-2
app/serializers/pipeline_artifact_entity.rb
app/serializers/pipeline_artifact_entity.rb
+2
-2
app/serializers/pipeline_entity.rb
app/serializers/pipeline_entity.rb
+8
-6
No files found.
app/serializers/pipeline_action_entity.rb
View file @
8012abf4
...
...
@@ -7,8 +7,8 @@ class PipelineActionEntity < Grape::Entity
expose
:url
do
|
build
|
play_namespace_project_build_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
build
.
project
.
namespace
,
build
.
project
,
build
)
end
end
app/serializers/pipeline_artifact_entity.rb
View file @
8012abf4
...
...
@@ -7,8 +7,8 @@ class PipelineArtifactEntity < Grape::Entity
expose
:url
do
|
build
|
download_namespace_project_build_artifacts_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
build
.
project
.
namespace
,
build
.
project
,
build
)
end
end
app/serializers/pipeline_entity.rb
View file @
8012abf4
...
...
@@ -4,12 +4,14 @@ class PipelineEntity < Grape::Entity
expose
:id
expose
:user
,
if:
->
(
pipeline
,
opts
)
{
created?
(
pipeline
,
opts
)
},
using:
UserEntity
expose
:status
expose
:duration
expose
:finished_at
expose
:stages_with_statuses
,
as: :stages
,
if:
->
(
pipeline
,
opts
)
{
updated?
(
pipeline
,
opts
)
},
using:
PipelineStageEntity
expose
:artifacts
,
if:
->
(
pipeline
,
opts
)
{
updated?
(
pipeline
,
opts
)
},
using:
PipelineArtifactEntity
expose
:manual_actions
,
if:
->
(
pipeline
,
opts
)
{
updated?
(
pipeline
,
opts
)
},
using:
PipelineActionEntity
expose
:details
,
if:
->
(
pipeline
,
opts
)
{
updated?
(
pipeline
,
opts
)
}
do
expose
:status
expose
:duration
expose
:finished_at
expose
:stages_with_statuses
,
as: :stages
,
using:
PipelineStageEntity
expose
:artifacts
,
using:
PipelineArtifactEntity
expose
:manual_actions
,
using:
PipelineActionEntity
end
expose
:flags
,
if:
->
(
pipeline
,
opts
)
{
created?
(
pipeline
,
opts
)
}
do
expose
:latest?
,
as: :latest
...
...
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