• Lin Jen-Shin's avatar
    Skip or retain project while deleting the project: · aaf382d5
    Lin Jen-Shin authored
    * 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
    aaf382d5
project_destroy_worker_spec.rb 1010 Bytes