-
New Feature
-
Resolution: Done
-
Major
JENKINS-27295 discusses getting values from various kinds of parameters. Handling FileParameterValue is another matter. buildEnvironment (what is called today) is useless since it gives only a file name. createBuildWrapper is the way this works in a freestyle project, but this cannot work in a workflow; even if it were to return a SimpleBuildWrapper (JENKINS-24673) it is not clear where that would be called, since we can only use it from a workspace. getValue as currently implemented is useless since a FileItem does not have whitelisted methods, and anyway we would not want the flow itself to be copying streams to the workspace; this needs to be done by infrastructure. The only way forward I can see at the moment is for getValue to return a SimpleBuildWrapper, so that your flow could read
node {
wrap([$delegate: parameters.myFileParam]) {
sh 'cat myFileParam'
}
}
- depends on
-
JENKINS-24673 SimpleBuildWrapper
-
- Resolved
-
-
JENKINS-27295 Boolean parameters injected as String
-
- Resolved
-
- is duplicated by
-
JENKINS-47333 file parameter not working in pipeline job
-
- Closed
-
-
JENKINS-51245 file parameter issue in jenkins pipeline
-
- Closed
-
- is related to
-
JENKINS-29289 InputStep doesn't support File Parameters
-
- Resolved
-
-
JENKINS-47333 file parameter not working in pipeline job
-
- Closed
-
- relates to
-
JENKINS-12699 Temp upload files from file param not removed after transferred to slave
-
- In Review
-
- links to
[JENKINS-27413] Handle file parameters
Link |
New:
This issue depends on |
Link |
New:
This issue depends on |
Link |
New:
This issue is related to |
Workflow | Original: JNJira [ 161618 ] | New: JNJira + In-Review [ 180769 ] |
Component/s | New: pipeline-general [ 21692 ] |
I am not sure I understand the issue's description but we do encounter a problem with workflow and file parameters.
We observe that the file parameter is not at all taken into account in the workflow parameter:
Which basically makes the file parameter completely useless for a job.
The same setup works for a standard job.
Are we are doing something wrong or is it a bug in the workflow plugin as this current issue seems to indicate ?