automatically remove artifacts after a period of time (OD-1132)
Andreas Wachter opened 3 years ago

Hi, is it somehow possible to remove artifacts after some time, like Gitlab deletes expired artifacts?

  • Robin Shen commented 3 years ago

    OneDev has the feature to auto-remove outdated artifacts together with build records. To do that, setup appropriate build preserve rules. For instance all onedev projects set up this rule in the parent project:

    2023-01-22_06-56-25.png

  • Andreas Wachter commented 3 years ago

    that's awesome, thanks a ton.

  • Andreas Wachter changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • Andreas Wachter changed state to 'Open' 3 years ago
    Previous Value Current Value
    Closed
    Open
  • Andreas Wachter commented 3 years ago

    doesn't really work for me. this is an older pipeline image.png this is the newer pipeline image_2.png I've set up this rule in the parent project image_3.png

    there was no new commit on the project or anything, because this just builds a new container via a cronjob

  • Andreas Wachter commented 3 years ago

    what I would like to achieve is that only the latest "build arm64" contains artifacts and the older ones are deleted

  • Robin Shen commented 3 years ago

    Build will be cleaned up every night at 12:00PM. So you may have more than 1 builds before that time.

  • Andreas Wachter changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • Andreas Wachter commented 3 years ago

    Thanks

issue 1/1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1132
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover