This is kind of annoying to handle when you don't know what the file name will be or need to change its name before it reaches its destination. You kind of need to perform a hack. This is how I do it:
- Use the "File parameter" parameter to upload your file
- Use the OS-specific script to rename the file from whatever you named your
File Parameter
to whatever you want it to be, e.g., if my File Parameter
had the File location
value of file_name
instead of an actual relative file-path, I'd then do something like this for say, Windows inside a Build-Step for "Execute Windows Batch Command":
move .\file_name .\%file_name%
And then just use ArtifactDeployer to copy everything there to your desired location.
ps: this won't remove digital signatures, so the move-operation should be considered mostly safe.
curl
: stackoverflow.com/questions/13348480/… – jmunsch