Commit 52fe6098 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Refactor Ci::Build#raw_trace

parent 7a3cdd4a
......@@ -217,11 +217,8 @@ module Ci
end
def raw_trace
if File.exist?(path_to_trace)
File.read(path_to_trace)
elsif has_old_trace_file?
# Temporary fix for build trace data integrity
File.read(old_path_to_trace)
if File.exist?(trace_file_path)
File.read(trace_file_path)
else
# backward compatibility
read_attribute :trace
......
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