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

Workflow build Parameters are not exposed to CopyArtifact

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • copyartifact-plugin
    • Jenkins 1.598 on Linux
      Workflow:Aggregator plugin 1.2
      CopyArtifact plugin: 1.34

      If I use the CopyArtifact plugin with a workflow step(), it correctly pulls the latest successful build's artifacts when pointed to a project of type Workflow.

      However, if I specify parameters for that same project, it will always throw an AbortException saying no build with those parameters could be found, regardless of what I entered in.

      If I change the CopyArtifact to point to a freestyle project, the parameters correctly work as intended, pulling in most recent build that had those parameters.

      Since the CopyArtifact is behaving as it should, I'm assuming there's a flaw in how the Workflow plugin is exposing its build Parameters.

      Sample code:

      step ([$class: 'CopyArtifact',
             projectName: 'Test Run Composer',
             target: 'composer_run',
             parameters: "PRODUCT=test,BRANCH_NAME=$branch_name"
            ]);
      

          [JENKINS-26694] Workflow build Parameters are not exposed to CopyArtifact

          James VL created issue -
          Jesse Glick made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Assignee Original: Jesse Glick [ jglick ] New: Tom FENNELLY [ tfennelly ]
          Labels Original: copyartifact workflow-plugin New: workflow
          ikedam made changes -
          Attachment New: build.xml [ 28570 ]
          ikedam made changes -
          Assignee Original: Tom FENNELLY [ tfennelly ] New: ikedam [ ikedam ]
          ikedam made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          ikedam made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          ikedam made changes -
          Link New: This issue is related to JENKINS-30357 [ JENKINS-30357 ]
          Craig Rodrigues made changes -
          Link New: This issue is related to JENKINS-32209 [ JENKINS-32209 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160769 ] New: JNJira + In-Review [ 208388 ]
          Andrew Bayer made changes -
          Labels Original: workflow New: pipeline workflow

            ikedam ikedam
            jamesvl James VL
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: