Execute an artifact cleanup policy
Execute an artifact cleanup policy to simulate or immediately delete matched artifacts.
Manually execute
You can manually execute the artifact cleanup operation immediately.
Simulated execution
Simulate the execution of the artifact cleanup policy to preview the results.
Tip: Simulated execution does not actually perform the cleanup operation.
-
In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.
-
After selecting the artifact cleanup policy, click Actions > simulation execute. Preview the cleanup results in the pop-up window and close it to perform the execution operation.
Immediate execution
Immediately execute the artifact cleanup policy to delete matched artifacts.
Tip: After successful execution, the matched artifacts will be permanently deleted and cannot be recovered. It is recommended to preview the cleanup results through simulation execute before immediate execution to ensure consistency with expectations.
-
In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.
-
After selecting the cleanup policy, click Start and confirm.
Automatic execution
You can periodically perform the artifact cleanup operation by configuring a scheduled trigger.
Configure triggers
The platform supports configuring scheduled triggers to cyclically trigger pipelines.
-
In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.
-
After selecting the cleanup policy, switch to the Trigger tab and refer to the following instructions to configure the relevant parameters.
-
Day-based: Supports selecting a specified time within a week and triggering it cyclically.
-
Custom: Use a custom Crontab expression to define the trigger rule. The rule can refer to How to set up a scheduled trigger rule? .
-
Disable/Enable trigger configuration
Disable/enable the created artifact trigger.
-
In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.
-
After selecting the cleanup policy, switch to the Trigger tab.
-
Click
> Disable/Enable next to the trigger name.
Relevant operations
View artifact cleanup log
View the log information generated by each artifact cleanup execution and count the cleaned artifact information.
-
In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.
-
After selecting the cleanup policy, switch to the Execution Record tab.
-
View the Steps, Cleanup Time, Cleanup Method, and Cleanup Status generated by each cleanup.
-
Click
to view the log.
Update/Remove the trigger configuration
Update/remove the created artifact trigger.
-
In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.
-
After selecting the cleanup policy, switch to the Trigger tab.
-
Click
> Update/Delete next to the trigger name.
-
Update or delete the trigger.
Update or delete an artifact cleanup policy
Update or delete the created artifact cleanup policy rules.
-
In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.
-
After selecting the cleanup policy, click Actions > Update/Delete.
-
Update or delete the cleanup policy.
Delete execution records
Delete the logs of executing artifact cleanup in the artifact repository project.
-
In the left navigation bar, click DevOps Toolchain > Artifact Cleanup.
-
After selecting the cleanup policy, switch to the Execution Record tab.
-
Click
and confirm.