Jenkins How can i upload a text file and use it as a parameter

浪尽此生 提交于 2019-12-05 23:58:00

You can upload a file from your computer to the workspace through the File parameter of the job.

You can use Extended Choice plugin parameter, to read value(s) from a file and display them in a dropdown/radio-button/checkbox for the user to select, dynamically, every time the build is triggered.

You can use EnvInject plugin to read value(s) from a file and inject them into the build as environment variables, so that they can be used by the rest of the build steps/scripts.

Your question is very unclear on what your are trying to do. Pick one of the 3 methods above based on what you need, or clarify your question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!