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