Closed thilakpv closed 5 years ago
aqlCleanup is deprecated. Its better to use the JFrog CLI delete command with a file spec.
My requirement is different. I am trying to make this groovy script work to integrate it with shared libraries in jenkins where I can delete old files when a new file is uploaded.
So I need this groovy script to work.
Thanks Mark for responding.
If I remember correctly, I deprecated this script because I ran into this issue, and we want customers to switch to the CLI for the vast majority of use cases. I believe I fixed it by changing the type of map used by the script, and it worked, but I didn't have time to properly validate/test (and I don't seem to have that code stashed away anywhere.)
I hope this helped. I'm going to close this issue for now, but if you have additional questions feel free to re-open or contact support and mention you spoke with me.
Hi When I ran this script, I am seeing following error:
aqlCleanup.groovy: 51: unable to resolve class groovy.json.internal.LazyMap @ line 51, column 22. public constructPath(groovy.json.internal.LazyMap item) { ^
1 error