Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Build and Artifact Cleanup Strategy #4631

Laba42 ·

Hallo,

Is there a way to exclude certain builds (such as those labelled with recommend) from the automatic cleanup of Build and Artifact Cleanup Strategy

We would need something like "Reserve the builds of the last x days **and ** those labelled with Recommend".

Georg

  • solved #2
  • replies 1
  • views 67
  • stars 0
robinshen ADMIN ·

The build clean up strategy can be configured to run with a condition, and the condition can be set as below to preserve builds for 30 days, while still keep all recommended builds:

groovy:
preserved <= 30 || build.recommended

However for artifact cleanup strategy, there is no such option. Please file an improvement ticket at track.pmease.com if this is necessary.