• Toon Claes's avatar
    Add rake task to clean orphan artifact files · dabd91b2
    Toon Claes authored
    This adds the rake task rake
    gitlab:cleanup:orphan_job_artifact_files. This rake task cleans all
    orphan job artifact files it can find on disk.
    
     It performs a search on the complete folder of all artifacts on
    disk. Then it filters out all the job artifact ID for which it could
    not find a record with matching ID in the database. For these, the
    file is deleted from disk.
    dabd91b2
orphan_job_artifact_files.rb 3.44 KB