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

Workflow build Parameters are not exposed to CopyArtifact

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: copyartifact-plugin
    • Labels:
    • Environment:
      Jenkins 1.598 on Linux
      Workflow:Aggregator plugin 1.2
      CopyArtifact plugin: 1.34
    • Similar Issues:

      Description

      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"
            ]);
      

        Attachments

          Issue Links

            Activity

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: