Status: Closed (View Workflow)
Linux debian squeeze 64, copyartifact 1.22, jenkins 1.466
I'm trying to retrieve artifacts from a matrix job (A) to another matrix job (B) with same axis (label) defined on nodes : Lenny64, Squeeze64
On "copy artifacts from another project", il I use A/label=$label in project name field, it fails with the following message :
Unable to find project for artifact copy: A/label=Lenny64
As you can see, it looks like the param $label is expanded correctly.
If I use A/label=Lenny64 in project name field, then it works (artifact is found and copied).
Indeed, security model I use is "matrix based security", but any declared user has Read permission on Job (and Global Read permission too) (except anonymous). Did I miss something ?
You have to grant permissions also to anonymous users.
Alternately, I added following features:
Supports "authorized" job. You can authorize jobs with Authorize Project plugin (introdeced in 1.29).
Added configuration to specify which jobs can copy artifacts of that job. See https://github.com/jenkinsci/copyartifact-plugin/pull/27 for a screen shot (introduced in 1.30).
Would you try them?
I think they help you.
See https://wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin#CopyArtifactPlugin-Permissionstocopyartifact for details.
Please read the help text about project name, in particular about project permissions when $variables are used. Does this apply in your setup?