diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-07-20 16:02:09 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-07-20 16:02:09 +0900 |
commit | 36e69897b0524cdee6060c928c03af734afae664 (patch) | |
tree | 6f43b11dafe92e3acb47216de68d5c0f0a90c39a | |
parent | 402ae97ecf7f9e3fe541f2d6abef6e47ab740452 (diff) | |
download | gitlab-ce-36e69897b0524cdee6060c928c03af734afae664.tar.gz |
Erase test reports at the proper timing
-rw-r--r-- | app/models/ci/build.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 4b6c65f4223..0e5dfb1bd02 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -455,7 +455,6 @@ module Ci def erase_artifacts! remove_artifacts_file! remove_artifacts_metadata! - erase_test_reports! save end @@ -467,6 +466,7 @@ module Ci return false unless erasable? erase_artifacts! + erase_test_reports! erase_trace! update_erased!(opts[:erased_by]) end |