Skip or retain project while deleting the project:
Skip or retain project while deleting the project:
- Skip Ci::Build#update_project_statistics whenever there's no project (i.e. we're deleting the project!)
- Retain the unscoped_project before deleting the build,
so that we could use the data to delete the artifacts.
Note that carrierwave uses
after_commit
for this, so we need to retain it in the memory.
Closes #15005 (closed)