[
https://issues.jenkins-ci.org/browse/JENKINS-13488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161706#comment-161706
]
Alan Harder commented on JENKINS-13488:
---------------------------------------
"Optional" currently refers only to finding the artifact within a project.
Currently the plugin is coded such that failure to find the project (in this
case a matrix configuration) is always an error.
> Copy Artifacts plugin's "Optional" not working
> ----------------------------------------------
>
> Key: JENKINS-13488
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13488
> Project: Jenkins
> Issue Type: Bug
> Components: copyartifact
> Affects Versions: current
> Environment: Jenkins 1.457
> Reporter: Brian Murrell
> Assignee: Alan Harder
>
> I have a matrix-configuration job in which I am trying to copy artifacts from
> an upstream matrix-configuration job where some of the axes combinations of
> the upstream job are not run and therefore do not produce artifacts. In the
> job I am running the copy artifacts action I use
> {{upstream_job/arch=$arch,distro=$distro}} as the Project name so that each
> combination copies it's respective upstream artifacts.
> However knowing that there upstream combinations that are not run and
> therefore don't have artifacts I have selected "Optional" for this copy
> artifacts action but it's still failing with:
> {code}
> Unable to find project for artifact copy: upstream/arch=x86_64,distro=el5
> 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
> {code}
> I can't simply exclude the same axes combinations in the job I am doing the
> artifact copying in as I do upstream since there are other actions that need
> to be done even when then are no artifacts from the upstream job.
> Am I misunderstanding the use of *Optional* in the Copy Artifacts plugin?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira