Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
99d5668c
Commit
99d5668c
authored
Aug 26, 2021
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simply logic in unsafe_archive!
parent
a85209d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
lib/gitlab/ci/trace.rb
lib/gitlab/ci/trace.rb
+2
-5
No files found.
lib/gitlab/ci/trace.rb
View file @
99d5668c
...
...
@@ -191,12 +191,8 @@ module Gitlab
def
unsafe_archive!
raise
ArchiveError
,
'Job is not finished yet'
unless
job
.
complete?
if
trace_artifact
unsafe_trace_cleanup!
raise
AlreadyArchivedError
,
'Could not archive again'
if
already_archived?
end
if
job
.
trace_chunks
.
any?
Gitlab
::
Ci
::
Trace
::
ChunkedIO
.
new
(
job
)
do
|
stream
|
archive_stream!
(
stream
)
...
...
@@ -227,6 +223,7 @@ module Gitlab
if
already_archived?
# An archive already exists, so make sure to remove the trace chunks
erase_trace_chunks!
raise
AlreadyArchivedError
,
'Could not archive again'
else
# An archive already exists, but its associated file is not complete, so remove it
trace_artifact
.
destroy!
...
...
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