Updated on 2024-11-11 GMT+08:00

Clearing Policies 2.0

If files in Release Repos become redundant or invalid, you can use the scheduled auto-clearing policy to either move expired files to the recycle bin or delete outdated files from it. This helps you manage your Release Repos more efficiently and in an organized manner.

Setting Clearing Policies

  1. Click a project card to access the project, and choose Artifact > Release Repos from the menu bar.
  2. Click Settings in the upper right corner of the page and select Clearing Policies.
  3. Enable Move expired files to the Recycle Bin or Clear from Recycle Bin as required, and select a retention period from the drop-down list.

    Default retention periods:

    • Move expired files to Recycle Bin: 30 days
    • Clear from Recycle Bin: 30 days
    Figure 1 Setting clearing policies
    • You can also set a period. Click Customize, enter a number, and click to save the setting.

      Parameters below are optional.

      • Skip released files: The system retains files in the production package state when clearing files. For details, see Setting Production Package Status.
      • Skip specified paths: The system retains software packages that match the file paths set by users when clearing files.
        • You can set multiple file paths, each starting with a slash (/) and separated by semicolons (;) but file path names cannot contain the project name. Example: /test/folder1/;/1.0.0/test.txt
        • Spaces before and after the file path name will be automatically removed.
        • The file path uses prefix matching. Ignore directories ending with a slash (/) and ignore files with a full file path. Otherwise, the ignored file may not match.