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

CopyArtifact does not work in a secured environment with Workflow and Authorize Project

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline
    • Jenkins 1.609.2
      Copy Artifcat 1.35.2
      Workflow 1.10-beta1
      Authorize Project 1.1.0

      If you have a secured environment that does not grant anonymous access to build artifacts then it is impossible to use copyArtifact in a workflow step even when setting the workflow to run as a user that has administration rights.

      ERROR: Unable to find project for artifact copy: producer
      This may be due to incorrect project name or permission settings; see help for project name in job configuration.
      

      Attached is a Jenkins home with 2 jobs that demonstrates the issue.
      the username is "admin" with password "admin" - *note* all plugins will need to be installed.

          [JENKINS-30122] CopyArtifact does not work in a secured environment with Workflow and Authorize Project

          James Nord created issue -
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Component/s Original: copyartifact-plugin [ 15692 ]
          Component/s Original: authorize-project-plugin [ 18155 ]
          Jesse Glick made changes -
          Labels New: authentication regression
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-29875 [ JENKINS-29875 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-25879 [ JENKINS-25879 ]
          Jesse Glick made changes -
          Link Original: This issue is blocking JENKINS-29875 [ JENKINS-29875 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 192 (Web Link)" [ 13131 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165208 ] New: JNJira + In-Review [ 197656 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]

            jglick Jesse Glick
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: