gitlab-org--gitlab-foss/lib/gitlab/data_builder/archive_trace.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
383 B
Ruby
Raw Normal View History

# 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