On 06/02/13 06:13, Daniel Becroft wrote:
If I have the following setup:

jobA -> jobB -> jobC -> jobD

As part of jobD's work, I need to copy an artifact from jobA. However,
the copy artifact plugin doesn't seem to know about jobA, and I get the
following error:

Started by upstream project "test-copy-B  
<http://jenkins.supercorp.local:8080/job/test-copy-B/>" build number1  
<http://jenkins.supercorp.local:8080/job/test-copy-B/1>
originally caused by:
Started by upstream project "test-copy-A  
<http://jenkins.supercorp.local:8080/job/test-copy-A/>" build number1  
<http://jenkins.supercorp.local:8080/job/test-copy-A/1>
originally caused by:
Started by useranonymous  <http://jenkins.supercorp.local:8080/user/null>
Building remotely onSCBBUILD01.supercorp.local  
<http://jenkins.supercorp.local:8080/computer/SCBBUILD01.supercorp.local>  in 
workspace D:\jenkins\workspace\test-copy-C
Unable to find a build for artifact copy from: test-copy-A
Build step 'Copy artifacts from another project' marked build as failure
Finished: FAILURE

You didn't mention how you have configured the plugin, but I'm guessing you need to select "Latest successful build" in the "Which build" field, rather than trying to use "Upstream build that triggered this job". Or at least enable the "Use "Last successful build" as fallback" option.

Alternatively, it looks like this pull request may cover you use case:
https://github.com/jenkinsci/copyartifact-plugin/pull/15

Regards,
Chris

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to