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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-11 12:11:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-11 12:11:14 +0300
commit43e40e8daaceafb9b78fde9ac5ce97584a210a90 (patch)
treeb011f75121d3e42651522123fef9421437aca61a /lib/gitlab/data_builder
parent75ef798ebc8e6bf6960dc2540ea6c3a42c5312c8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/data_builder')
-rw-r--r--lib/gitlab/data_builder/build.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/data_builder/build.rb b/lib/gitlab/data_builder/build.rb
index f701f84291e..8eda871770b 100644
--- a/lib/gitlab/data_builder/build.rb
+++ b/lib/gitlab/data_builder/build.rb
@@ -12,7 +12,7 @@ module Gitlab
author_url = build_author_url(build.commit, commit)
- {
+ data = {
object_kind: 'build',
ref: build.ref,
@@ -68,6 +68,10 @@ module Gitlab
environment: build_environment(build)
}
+
+ data[:retries_count] = build.retries_count if Feature.enabled?(:job_webhook_retries_count, project)
+
+ data
end
private