diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-11 18:23:07 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-11 18:23:07 +0300 |
commit | ffa75a497a23bf6f87de626fee08ff4538a12587 (patch) | |
tree | 36e498b702c2f00d185f2f0cb030eea8697be0dd /lib/gitlab/data_builder | |
parent | 0b0a53ee5ec3782c6c7e166f69f190e820232fb0 (diff) |
Remove stage parameter from send payload
Diffstat (limited to 'lib/gitlab/data_builder')
-rw-r--r-- | lib/gitlab/data_builder/pipeline_data_builder.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/data_builder/pipeline_data_builder.rb b/lib/gitlab/data_builder/pipeline_data_builder.rb index a4c770b630f..3dc4d50fcde 100644 --- a/lib/gitlab/data_builder/pipeline_data_builder.rb +++ b/lib/gitlab/data_builder/pipeline_data_builder.rb @@ -15,9 +15,6 @@ module Gitlab end def hook_attrs(pipeline) - first_pending_build = pipeline.builds.first_pending - config_processor = pipeline.config_processor unless pipeline.skip_ci? - { id: pipeline.id, ref: pipeline.ref, @@ -25,8 +22,7 @@ module Gitlab sha: pipeline.sha, before_sha: pipeline.before_sha, status: pipeline.status, - stage: first_pending_build.try(:stage), - stages: config_processor.try(:stages), + stages: pipeline.stages, created_at: pipeline.created_at, finished_at: pipeline.finished_at, duration: pipeline.duration |