diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-11 12:11:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-11 12:11:14 +0300 |
commit | 43e40e8daaceafb9b78fde9ac5ce97584a210a90 (patch) | |
tree | b011f75121d3e42651522123fef9421437aca61a /lib/gitlab/data_builder | |
parent | 75ef798ebc8e6bf6960dc2540ea6c3a42c5312c8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/data_builder')
-rw-r--r-- | lib/gitlab/data_builder/build.rb | 6 |
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 |