Commit 326a8c64 authored by Shinya Maeda's avatar Shinya Maeda

Update jobs_controller.rb

parent 16b6c46a
......@@ -127,7 +127,7 @@ class Projects::JobsController < Projects::ApplicationController
build.trace.read do |stream|
if stream.file?
send_file stream.path, type: 'text/plain; charset=utf-8', disposition: 'inline'
elsif build.old_trace
else
send_data stream.raw, type: 'text/plain; charset=utf-8', disposition: 'inline', filename: 'job.log'
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