![]() Anka Build Cloud Controller & Registry Version 1.29.0.Like this tutorial? Check out more tutorials on Jenkins. Step 9: If you are ready to run your build just go ahead and do that. I am gonna go ahead and select that and then click on open. In my case, it was abc.xlsx located on my desktop. Step 8: Select the file you want to upload. Step 7: To see things in action, click on Choose File. ![]() You will notice a new input parameter now created with the option to upload a file. You can provide the description as well if you want or instructions for your fellow end users or clients to run the build. ![]() In my code, I have provided the same path to be read from. Step 4: In the file location field, enter the location where you want your file to be uploaded to. Where filename.xlsx is your file name and extension. If you want the file to be uploaded to some specific location in your workspace you can provide that location like this: It uploads the file to the base location (workspace). So what basically file parameter does is that it creates an upload box from where you can select your file. On clicking File Parameter, a small box of File Parameter will open. Step 3: Click on the Add Parameter drop-down to reveal all the available parameter options. Step 2: In Maven Info Plugin Configuration click on the checkbox that reads “This project is parameterized”ĭoing so will show the Add Parameter dropdown. Step 1: Click on the Configure button to open the configuration page. So let’s say you have an ongoing project that you wish to add a file parameter field to. ![]() I have made a short tutorial on how to upload a file in Jenkins using file parameter that will assist you in achieving that.Ĭheck it out: How to Upload a File in Jenkins There is this field called file parameter provided by Jenkins that lets you do that. So the parameter is basically a file to be uploaded at runtime. ![]() At times you might be required to add a field in your build with the help of which your end user or client could easily upload a file. Learn how to upload a file in Jenkins using file parameter. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |