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

create_trace_artifact_service.rb « ci « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 280a2c3afa4c91fefcf2deeb93b5492a094567a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Ci
  class CreateTraceArtifactService < BaseService
    def execute(job)
      return if job.job_artifacts_trace

      job.trace.read do |stream|
        if stream.file?
          job.create_job_artifacts_trace!(
            project: job.project,
            file_type: :trace,
            file: stream)
        end
      end
    end
  end
end