BigW Consortium Gitlab

Commit 1bc0d732 by Lin Jen-Shin

Also remove ci_builds.artifacts_size when erased

parent de543359
...@@ -340,6 +340,7 @@ module Ci ...@@ -340,6 +340,7 @@ module Ci
def erase_artifacts! def erase_artifacts!
remove_artifacts_file! remove_artifacts_file!
remove_artifacts_metadata! remove_artifacts_metadata!
self.artifacts_size = nil
save save
end end
......
...@@ -482,6 +482,7 @@ describe Ci::API::API do ...@@ -482,6 +482,7 @@ describe Ci::API::API do
expect(response).to have_http_status(200) expect(response).to have_http_status(200)
expect(build.artifacts_file.exists?).to be_falsy expect(build.artifacts_file.exists?).to be_falsy
expect(build.artifacts_metadata.exists?).to be_falsy expect(build.artifacts_metadata.exists?).to be_falsy
expect(build.artifacts_size).to be_falsy
end end
end end
......
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