Skip to content
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

Storage User Plugins - before & after delete capture artifactes size details #449

Closed
sbhaskarareddy opened this issue May 1, 2023 · 1 comment

Comments

@sbhaskarareddy
Copy link

Hi Team,

Is there any way to get the Get the artifacts size details before and after delete of the repos ? we need groovy code details and also this has to update in log file as well .

storage {

beforeDelete { item ->
}

/**

  • Handle after delete events.
  • Closure parameters:
  • item (org.artifactory.fs.ItemInfo) - the original item deleted.
    */
    afterDelete { item ->
    }

Kindly any help on this please ?

@harendrar8095
Copy link
Collaborator

Thanks for reaching out.

To get artifact size details before and after deletion, you can refer to the Artifactory Public API documentation for APIs that fetch size details.

As you can see in our documentation, we’re working on a newer, recommended way to extend the JFrog Platform (including Artifactory) in a cloud-native way, called JFrog Workers. We suggest trying out JFrog Workers to handle this use case.

We'll close this question for now, but feel free to reopen it if you have further insights or questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants