-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of a stashedFile parameter in a build step #126
Comments
I do not think there should be any difference. |
Is there any update here? I am facing the same issue. I have a job that takes a stashedFile and a string as parameters, but I can't figure out how to call that from an upstream pipeline?
This results in an error like...
To be clear this is a larger file, hence the use of a stashed file. about 150MB Edit: that output was actually from a second run passing the java.nio.File object directly. Encoding to Base64 string did not work either for reference. |
Sorry, no, I have not found time to write a test for this scenario and investigate.
FYI performance is likely to be poor if you are trying to pass around large files between builds using the |
Thank you, appreciate the response. Yeah I wish I had an artifact repo setup for this haha. Though your phrasing does give me an alternative idea that may be workable. We do a fetch on the file in the parent pipeline. My thought was to pass the file along, but that's how I ended up here.... It's not ideal, but I could just pass the name of the file into the child job and rerun the fetch a second time. Not the end of the world I suppose. |
If you can fetch the file from somewhere else, that is probably better, as it reduces the disk consumption and I/O pressure on the Jenkins controller (assuming you run builds on agents). Stashed file parameters are more intended for cases where largish files must be submitted to the controller, whether through a browser upload by a human, or REST or CLI action from some external tool, and would not easily be available for download. |
Describe your use-case which is not covered by existing documentation.
The documentation clearly indicates how to pass a
base64File
parameter to a downstream Job via thebuild
step.This is not the case for a parameter of type
stashedFile
. In particular, how to create a file of typeorg.apache.commons.fileupload.FileItem
to give to thefile
argument?Thank you
Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.
No response
The text was updated successfully, but these errors were encountered: