Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
7f5da4b7276b
Unverified
Commit
52fe6098
authored
Sep 01, 2016
by
Tomasz Maczukin
Browse files
Refactor Ci::Build#raw_trace
parent
49fa8b1ddafb
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/ci/build.rb
View file @
7f5da4b7
...
...
@@ -217,11 +217,8 @@ def has_trace?
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment