I have two Jenkins jobs that build our software.
One job runs when it detects a change in the repository. The other job runs nightly.
I want the nightly job to start from a clean slate, that is, build all the artifacts - jars, wars, poms, rpms, etc. On the other hand, I want the other jobs to use existing artifacts - I already do this.
For the nightly job, I delete the local .m2 repository. But how do I delete the appropriate version in artifactory? For example, if I'm building a 1.0.0-SNAPSHOT version, I want to delete ALL artifacts in artifactory with that version beforehand.