Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
Jenkins 1.598 on Linux
Workflow:Aggregator plugin 1.2
CopyArtifact plugin: 1.34
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
- is related to
-
JENKINS-30357 CopyArtifact step fails when using ParameterizedBuildSelector class for selecting build
-
- Closed
-
-
JENKINS-32209 NodeLabel parameter not working inside workflow
-
- Closed
-
Code changed in jenkins
User: ikedam
Path:
src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
http://jenkins-ci.org/commit/copyartifact-plugin/abd5a3067a3a0769115cd73716978545ff7892bc
Log:
JENKINS-26694Added a test to reproduceJENKINS-26694.