Commit 3297cfb2 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

GB catches: CreateTraceArtifactService project, user pass

parent ca5b18c2cde3
......@@ -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
Supports Markdown
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