diff options
Diffstat (limited to 'lib/gitlab/data_builder/archive_trace.rb')
-rw-r--r-- | lib/gitlab/data_builder/archive_trace.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gitlab/data_builder/archive_trace.rb b/lib/gitlab/data_builder/archive_trace.rb new file mode 100644 index 00000000000..f6dd6130104 --- /dev/null +++ b/lib/gitlab/data_builder/archive_trace.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Gitlab + module DataBuilder + module ArchiveTrace + extend self + + def build(job) + { + object_kind: 'archive_trace', + trace_url: job.job_artifacts_trace.file.url, + build_id: job.id, + pipeline_id: job.pipeline_id, + project: job.project.hook_attrs + } + end + end + end +end |