diff options
Diffstat (limited to 'lib/gitlab/data_builder')
-rw-r--r-- | lib/gitlab/data_builder/build.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/data_builder/pipeline.rb | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/gitlab/data_builder/build.rb b/lib/gitlab/data_builder/build.rb index 91e6fc11a53..4640f85bb0a 100644 --- a/lib/gitlab/data_builder/build.rb +++ b/lib/gitlab/data_builder/build.rb @@ -24,7 +24,7 @@ module Gitlab # Leaving this way to have backward compatibility build_id: build.id, build_name: build.name, - build_stage: build.stage, + build_stage: build.stage_name, build_status: build.status, build_created_at: build.created_at, build_started_at: build.started_at, diff --git a/lib/gitlab/data_builder/pipeline.rb b/lib/gitlab/data_builder/pipeline.rb index 2c124b07006..320ebe5e80f 100644 --- a/lib/gitlab/data_builder/pipeline.rb +++ b/lib/gitlab/data_builder/pipeline.rb @@ -52,7 +52,8 @@ module Gitlab runner: :tags, job_artifacts_archive: [], user: [], - metadata: [] + metadata: [], + ci_stage: [] } } ) @@ -110,7 +111,7 @@ module Gitlab def build_hook_attrs(build) { id: build.id, - stage: build.stage, + stage: build.stage_name, name: build.name, status: build.status, created_at: build.created_at, |