I have a multi-module maven project that is an upstream job, and the downstream job that it triggers uses the Copy Artifact plugin to copy the artifacts produced by the maven project. These are snapshot artifacts being generated. Jenkins automatically archives the maven artifacts, and when it does, at changes the artifact name to have a version and timestamp on it, so it looks like
myproject-1.2.0-<timestamp>.war, or something like that. This happens even though my project outputs a war named
myproject.war. I tried just using the Jenkins post build step to archive the artifacts (which does have the correct names) and disabling the automatic archiving of maven artifacts, but when I do this, the Copy Artifact plugin fails because it looks for the artifacts in the maven module subdirectories.
Is there a way to have the Copy Artifact plugin only copy the artifacts produced by the Jenkins post build archiving step or is there any way to have the maven archived artifacts not have the timestamp added to them?
Thank you.