-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArtifactCleanupPlugin: cron not triggered with multiple policies #344
Comments
I confirm having the same problem with the latest Groovy script as of now and Artifactory 7.9.0. |
Please vote for this bug to be fixed at https://www.jfrog.com/jira/browse/RTFACT-24307 as JFrog is prioritizing by community feedback. Right now there isn't even a ETA set for solving this bug. |
Where is this policy defined? It's not mentioned anywhere in the documentation? How can we set this plugin to run automatically based on a schedule? |
@brikendr are you using an HA cluster? I had a similar problem and after enabling full logging (debug) on Artifactory I realised that I forgot to set the |
@martinm82 no we are not using HA cluster at the moment. |
Is this supposed to be fixed by now? https://www.jfrog.com/jira/browse/RTFACT-24307 was set to resolved but I don't see any new changes after 3rd of Dec 2020 at https://github.com/jfrog/artifactory-user-plugins/commits/master/cleanup/artifactCleanup. |
I've the same issue, but my config only has one policy and not even with one it's being triggered. |
Thanks for bringing this up! If you’re encountering issues with the cleanup plugin, we recommend moving to our new product feature designed to handle cleanup tasks more effectively. This feature has reached General Availability (GA) and offers enhanced capabilities for maintaining and managing artifacts. You can find more information and guidance on using this new feature in our GA documentation. We’re closing this ticket since it’s an older one, but please feel free to reopen it if you have further questions! |
Hi,
I am using the artifact cleanup user plugin on our artifactory instance to artifacts from various repositories (generic, conan, python etc). I had to create two different policies where the first one is to delete artifacts older than one month and the second one is to delete artifacts older than a week. Here is an example of my json file:
As you can see i have configured in a way that the first cron is executed at 01:00 AM every night and the second one at 02:00AM respectively.
Here is a snippet of the artifactory log after the update was completed and plugins were reloaded:
After waiting a day, i see that the last written log from the
artifactCleanup
plugin is the one above. So there was basically no cron trigger scheduled at all.Groovy script has been updated to latest master from 03.12.2020. Any help would be appreciated. Thanks
The text was updated successfully, but these errors were encountered: