-
Notifications
You must be signed in to change notification settings - Fork 470
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
List the enabled jobs on Artifactory #385
Comments
The |
Yes, we are using the same JSON that was provided on the plugin page. located at
Questions:
We tried to reload after adjusting the JSON file in the plugin directory, but no luck. it is not reflecting in the artifactory UI page[
|
I don't know how to pass a JSON file to a cURL command, though I don't understand why you would. If you want to run on more than one repo, you simply separate repo names with commas, ie:
The
To my knowledge you can't. It seems like you are missing some general knowledge about how the plugins actually work, I highly recommend reading through this page: https://www.jfrog.com/confluence/display/JFROG/User+Plugins In the plugin you are talking about, there are 2 functions:
The If you want to see if a plugin is executing, I'd recommend having a look at the artifactory log. Also you need to make sure you've added your plugin to the list of loggers. How to do that is explained in the link i provided:
|
Thanks David for sharing the information. Enabled the logger name in "/opt/jfrog/artifactory/var/etc/artifactory/logback.xml" and executed the curl command to ran the artifactsCleanup plugin. And nothing is written to the cleanup log file. -rw-r----- 1 0 Jun 22 15:50 artifactory-cleanup.log ====================== $ curl -X POST -v -u admin:password "http://localhost:8082/artifactory/api/plugins/execute/cleanup?params=timeUnit=month;timeInterval=1;repos=libs-release-local;dryRun=true;paceTimeMS=2000;disablePropertiesSupport=true"Trying 127.0.0.1:8082... Mark bundle as not supporting multiuse
|
You should look in I hope this helps |
Hi David, Yes, we have enabled the logger and specified the level to "info" as mentioned below,
I can see only this information in the artifactory-service.log, after running the above mentioned curl command for running the cleanup plugin. ========================== |
That is odd. In any event, it looks like the plugin is not running at all.
I just saw in your output that it does say "reloading plugins". I'm sorry I have no further ideas to what could be wrong. I would make a ticket to JFrog support |
Yes, reloaded the plugin using REST API. |
Hi David, Please share the ticket details once created. Thanks & Regards, |
Ticket details? I don't work for JFrog. You have to make the ticket yourself. I was just trying to help |
We are using artifactory cleanup jobs https://github.com/jfrog/artifactory-user-plugins/tree/master/cleanup/artifactCleanup in our enviroment.
As per the readme page, we have tried these commands to enable the cleanup jobs
Question is:
Tried crontab -lu artifactory
, but no luck.The text was updated successfully, but these errors were encountered: