Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/data_builder/build.rb')
-rw-r--r--lib/gitlab/data_builder/build.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gitlab/data_builder/build.rb b/lib/gitlab/data_builder/build.rb
index 8fec5cf3303..e1e9e4720bb 100644
--- a/lib/gitlab/data_builder/build.rb
+++ b/lib/gitlab/data_builder/build.rb
@@ -12,13 +12,14 @@ module Gitlab
author_url = build_author_url(build.commit, commit)
- data = {
+ {
object_kind: 'build',
ref: build.ref,
tag: build.tag,
before_sha: build.before_sha,
sha: build.sha,
+ retries_count: build.retries_count,
# TODO: should this be not prefixed with build_?
# Leaving this way to have backward compatibility
@@ -69,10 +70,6 @@ module Gitlab
environment: build_environment(build)
}
-
- data[:retries_count] = build.retries_count if Feature.enabled?(:job_webhook_retries_count, project)
-
- data
end
private