Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14654

fails to copy artifact from matrix to matrix with label as parameter

      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).

          [JENKINS-14654] fails to copy artifact from matrix to matrix with label as parameter

          Alan Harder added a comment -

          Please read the help text about project name, in particular about project permissions when $variables are used. Does this apply in your setup?

          Alan Harder added a comment - Please read the help text about project name, in particular about project permissions when $variables are used. Does this apply in your setup?

          sbernaud added a comment -

          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 ?

          sbernaud added a comment - 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 ?

          ikedam added a comment -

          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.

          ikedam added a comment - 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.

          ikedam added a comment -

          ikedam added a comment - See https://wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin#CopyArtifactPlugin-Permissionstocopyartifact for details.

            mindless Alan Harder
            sbernaud sbernaud
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: