I'm developing a Jenkins declarative pipeline. I have the version as a parameter and depending on that version I would like to know if a specific folder exists in Jfrog Artifactory before downloading it. I have Jenkins Artifactory Plug-in installed. Is there a way I can know this information before downloading it?
Edit: I realized that my question was a bit out of context. In the end what I want to do is to upload an artifact. But in case the artifact already exists, I would like to give a warning to the user if he wants to proceed. And I was wondering if there was a solution, different than downloading an artifact to see if it exists, giving a warning depending if it was a successful download, and after that uploading the artifact.