BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
8a89efd8
Commit
8a89efd8
authored
Jan 25, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary changes
parent
63a9d582
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
trace.rb
lib/gitlab/ci/trace.rb
+10
-6
No files found.
lib/gitlab/ci/trace.rb
View file @
8a89efd8
...
@@ -84,6 +84,8 @@ module Gitlab
...
@@ -84,6 +84,8 @@ module Gitlab
end
end
def
erase!
def
erase!
job
.
job_artifacts_trace
&
.
destory
paths
.
each
do
|
trace_path
|
paths
.
each
do
|
trace_path
|
FileUtils
.
rm
(
trace_path
,
force:
true
)
FileUtils
.
rm
(
trace_path
,
force:
true
)
end
end
...
@@ -106,6 +108,14 @@ module Gitlab
...
@@ -106,6 +108,14 @@ module Gitlab
end
end
end
end
def
current_path
@current_path
||=
paths
.
find
do
|
trace_path
|
File
.
exist?
(
trace_path
)
end
end
##
# This doesn't include the latest path JobArtifactUploader#default_path.
def
paths
def
paths
[
[
default_path
,
default_path
,
...
@@ -113,12 +123,6 @@ module Gitlab
...
@@ -113,12 +123,6 @@ module Gitlab
].
compact
].
compact
end
end
def
current_path
@current_path
||=
paths
.
find
do
|
trace_path
|
File
.
exist?
(
trace_path
)
end
end
def
default_directory
def
default_directory
File
.
join
(
File
.
join
(
Settings
.
gitlab_ci
.
builds_path
,
Settings
.
gitlab_ci
.
builds_path
,
...
...
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