Jenkins参数化生成上传文件并保存原始文件名 [英] Jenkins Parameterized Build upload file and save original file name

查看:1093
本文介绍了Jenkins参数化生成上传文件并保存原始文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Jenkins的原始文件名下保存上传的文件参数化的BuildFile Parameter?例如,如果文件位置是my_file,则可以将其重命名为my_file原始执行:

  mv my_file $ {my_file} 


How to save uploaded file under original file name in Jenkins Parameterized Build "File Parameter"?

解决方案

You can get original file name from the parameter with the same name as the parameter name (file location field).

For example if the file location is "my_file" then you can rename it to original by executing:

mv my_file ${my_file}

这篇关于Jenkins参数化生成上传文件并保存原始文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆