I was trying to do a similar thing but the copy artifact plugin wasn't working for me. Instead I pass in the URL of the artifacts for the job I'm promoting and use curl to retrieve it. Works like a charm. :-)
Anthony On 2012-05-24, at 2:02 PM, Bob Dixon wrote: > I'm trying to create a single promotion job for use by the Promoted Builds > plugin that can promote builds from more than one project. > > I need the artifacts from a Windows build so I can run the promotion on a > Unix machine, so I'm trying to use the Copy Artifacts plugin in the promotion > job. > > I need the project name of the build being promoted, so I tried triggering > a parameterized build with the promotion plugin and setting a parameter to > $PROMOTED_JOB_NAME. I know the parameter is being passed correctly because I > get this error: > > Unable to find project for artifact copy: EC_5.2 > This may be due to incorrect project name or permission settings; see help > for project name in job configuration. > Build step 'Copy artifacts from another project' marked build as failure > > If I type "EC_5.2" in the box as the project name it works correctly, as > this is the name of the project. > > Just wondering if it's obvious what I'm doing wrong, or if there's another > way to do what I'm trying to do. I just need one file from the build being > promoted. My next idea is to see if I can do anything with $PROMOTED_URL. > i.e. if I can use the URL to copy from in some way. > > TIA, > > Bob