summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-02-03 00:15:19 +0900
committerShinya Maeda <shinya@gitlab.com>2018-02-06 15:50:08 +0900
commit25bf5555937e0ff9c7ca7e86a6090dc4b5f9cceb (patch)
tree53be1ee43b9859158d8fdb6038e07aea20d836ba /app
parent23ca10b914987caba154f8f0f8b89ed880d1f808 (diff)
downloadgitlab-ce-25bf5555937e0ff9c7ca7e86a6090dc4b5f9cceb.tar.gz
GB catches: CreateTraceArtifactService project, user pass
Diffstat (limited to 'app')
-rw-r--r--app/workers/create_trace_artifact_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/create_trace_artifact_worker.rb b/app/workers/create_trace_artifact_worker.rb
index 37866da9255..11cda58021e 100644
--- a/app/workers/create_trace_artifact_worker.rb
+++ b/app/workers/create_trace_artifact_worker.rb
@@ -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