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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pipeline
    • Environment:
      Jenkins 1.609.2
      Copy Artifcat 1.35.2
      Workflow 1.10-beta1
      Authorize Project 1.1.0
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java
            step-api/src/main/java/org/jenkinsci/plugins/workflow/steps/AbstractSynchronousNonBlockingStepExecution.java
            http://jenkins-ci.org/commit/workflow-plugin/2c70e4f31f141920e28569e1fbe9d5b71330e5d2
            Log:
            [FIXED JENKINS-30122] AbstractSynchronousNonBlockingStepExecution neglected to pick up the build’s authentication.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java step-api/src/main/java/org/jenkinsci/plugins/workflow/steps/AbstractSynchronousNonBlockingStepExecution.java http://jenkins-ci.org/commit/workflow-plugin/2c70e4f31f141920e28569e1fbe9d5b71330e5d2 Log: [FIXED JENKINS-30122] AbstractSynchronousNonBlockingStepExecution neglected to pick up the build’s authentication.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java
            step-api/src/main/java/org/jenkinsci/plugins/workflow/steps/AbstractSynchronousNonBlockingStepExecution.java
            http://jenkins-ci.org/commit/workflow-plugin/bcc1b245867567ce9fd7cacc57ffdae75d1c1e20
            Log:
            Merge pull request #192 from jglick/AbstractSynchronousNonBlockingStepExecution-authentication-JENKINS-30122

            JENKINS-30122 AbstractSynchronousNonBlockingStepExecution neglected to pick up the build’s authentication

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/bf76b8313ace...bcc1b2458675

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java step-api/src/main/java/org/jenkinsci/plugins/workflow/steps/AbstractSynchronousNonBlockingStepExecution.java http://jenkins-ci.org/commit/workflow-plugin/bcc1b245867567ce9fd7cacc57ffdae75d1c1e20 Log: Merge pull request #192 from jglick/AbstractSynchronousNonBlockingStepExecution-authentication- JENKINS-30122 JENKINS-30122 AbstractSynchronousNonBlockingStepExecution neglected to pick up the build’s authentication Compare: https://github.com/jenkinsci/workflow-plugin/compare/bf76b8313ace...bcc1b2458675
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java
            http://jenkins-ci.org/commit/workflow-cps-plugin/f44c4bdae4943f0238658869697f1be3e563d849
            Log:
            [FIXED JENKINS-30122] AbstractSynchronousNonBlockingStepExecution neglected to pick up the build’s authentication.
            Originally-Committed-As: 2c70e4f31f141920e28569e1fbe9d5b71330e5d2

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java http://jenkins-ci.org/commit/workflow-cps-plugin/f44c4bdae4943f0238658869697f1be3e563d849 Log: [FIXED JENKINS-30122] AbstractSynchronousNonBlockingStepExecution neglected to pick up the build’s authentication. Originally-Committed-As: 2c70e4f31f141920e28569e1fbe9d5b71330e5d2

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: