Commit 25bf5555 authored by Shinya Maeda's avatar Shinya Maeda

GB catches: CreateTraceArtifactService project, user pass

parent 23ca10b9
......@@ -3,8 +3,8 @@ class CreateTraceArtifactWorker
include PipelineQueue
def perform(job_id)
Ci::Build.find_by(id: job_id).try do |job|
Ci::CreateTraceArtifactService.new(nil, nil).execute(job)
Ci::Build.preload(:project, :user).find_by(id: job_id).try do |job|
Ci::CreateTraceArtifactService.new(job.project, job.user).execute(job)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment