summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-12-05 14:17:42 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-12-06 14:13:21 +0100
commitd865aedafc2282f898b4bd2fdfd3660c47203c37 (patch)
tree7d0767215b56c61e07380e5d2985e2f7ed72b077 /lib
parentfa1105b10b4f5dbce46bd72eb6374fe7f8d51f56 (diff)
downloadgitlab-ce-d865aedafc2282f898b4bd2fdfd3660c47203c37.tar.gz
Introduce `Ci::Stage`, right now this is artificial object that is build dynamically.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/data_builder/pipeline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/data_builder/pipeline.rb b/lib/gitlab/data_builder/pipeline.rb
index 06a783ebc1c..e0284d55da8 100644
--- a/lib/gitlab/data_builder/pipeline.rb
+++ b/lib/gitlab/data_builder/pipeline.rb
@@ -22,7 +22,7 @@ module Gitlab
sha: pipeline.sha,
before_sha: pipeline.before_sha,
status: pipeline.status,
- stages: pipeline.stages,
+ stages: pipeline.stages.map(&:name),
created_at: pipeline.created_at,
finished_at: pipeline.finished_at,
duration: pipeline.duration