If the file does not exist in the workspace, How can the user pass their 
own file from their client machine to workspace and run the build?

On Thursday, 5 November 2015 17:52:28 UTC+5:30, slide wrote:
>
> The doc for the File Parameter says this: "File parameter allows a build 
> to accept a file, to be submitted by the user when scheduling a new build. 
> The file will be placed inside the workspace at the known location after 
> the check-out/update is done, so that your build scripts can use this 
> file." 
>
> So it should be possible. Can you verify the file exists in the workspace 
> in your build step?
>
> On Thu, Nov 5, 2015 at 4:04 AM Narmadha Vigneshwaran <
> [email protected] <javascript:>> wrote:
>
>> My requirement is  "Users slelect their excel or text file from their 
>> local system and run the job".
>>
>>
>> On Thursday, 5 November 2015 16:14:43 UTC+5:30, Narmadha Vigneshwaran 
>> wrote:
>>>
>>> Thanks for the info. But in this case , the excel file should be stored 
>>> in the workspace. But i want the users to selct the fiel from their local 
>>> client machine and execute the job.Is it possible?
>>>
>>> On Thursday, 5 November 2015 15:40:55 UTC+5:30, Daniel Beck wrote:
>>>>
>>>> What you specify as parameter name is actually the name of the file 
>>>> used in the workspace, and not a variable. So get rid of the surrounding % 
>>>> chars in the batch step. 
>>>>
>>>> On 05.11.2015, at 10:28, Narmadha Vigneshwaran <[email protected]> 
>>>> wrote: 
>>>>
>>>> > Ii have used File Parameter as command line arguments.After selecting 
>>>> teh file thru File parameter, I ma passing it as Arugument to the command 
>>>> line.Please refer this screenshot. 
>>>> > 
>>>> > On Thursday, 5 November 2015 13:13:10 UTC+5:30, Baptiste Mathus 
>>>> wrote: 
>>>> > What did you put in the config fields for that file parameter, and 
>>>> how do you reference it in your job step(s)? 
>>>> > 
>>>> > Le 5 nov. 2015 6:33 AM, "Narmadha Vigneshwaran" <
>>>> [email protected]> a écrit : 
>>>> > The issue here is  Its selecting the file from local and unable to 
>>>> upload the file in the workspace. 
>>>> > 
>>>> > On Thursday, 5 November 2015 11:02:06 UTC+5:30, Narmadha Vigneshwaran 
>>>> wrote: 
>>>> > Sorry for the  incomplete info. My requirement is  I will pass an 
>>>> excel file which has the data.The data has been read from file and it 
>>>> needs 
>>>> to be processed. 
>>>> > When  I am using the File Parameter, I am able to select the excel 
>>>> file from my local machine. But when the build started, its failed with 
>>>> the 
>>>> below error. 
>>>> > 
>>>> > java.io.FileNotFoundException: sam.xls (The system cannot find the 
>>>> file specified) 
>>>> >         at java.io.FileInputStream.open0( 
>>>> > Native Method) 
>>>> >         at java.io.FileInputStream.open( 
>>>> > Unknown Source) 
>>>> >         at java.io.FileInputStream.<init> 
>>>> > (Unknown Source) 
>>>> >         at java.io.FileInputStream.<init> 
>>>> > (Unknown Source) 
>>>> >         at MOU_Console.readExcel(MOU_ 
>>>> > Console.java:144) 
>>>> >         at MOU_Console.iceLogin(MOU_ 
>>>> > Console.java:118) 
>>>> >         at MOU_Console.main(MOU_Console. 
>>>> > java:81) 
>>>> > 
>>>> > C:\Users\nuthiran\.jenkins\ 
>>>> > jobs\MOU\workspace>exit -1 
>>>> > Build step 'Execute Windows batch command' marked build as failure 
>>>> > No JDK named ‘null’ found 
>>>> > 
>>>> > 
>>>> > Hope this is clear enough now. 
>>>> >   
>>>> > 
>>>> > 
>>>> > On Wednesday, 4 November 2015 16:26:10 UTC+5:30, Narmadha 
>>>> Vigneshwaran wrote: 
>>>> > HI 
>>>> > I am unable to pass the excel file as parameter thru File 
>>>> Parameter.Is there any solutions to resolve this issue? 
>>>> > 
>>>> > -- 
>>>> > You received this message because you are subscribed to the Google 
>>>> Groups "Jenkins Users" group. 
>>>> > To unsubscribe from this group and stop receiving emails from it, 
>>>> send an email to [email protected]. 
>>>> > To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/74562dcc-306c-40ba-9f5c-da4d2faf4ec9%40googlegroups.com.
>>>>  
>>>>
>>>> > For more options, visit https://groups.google.com/d/optout. 
>>>> > 
>>>> > -- 
>>>> > You received this message because you are subscribed to the Google 
>>>> Groups "Jenkins Users" group. 
>>>> > To unsubscribe from this group and stop receiving emails from it, 
>>>> send an email to [email protected]. 
>>>> > To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/538ccf46-3b0d-4088-86d8-9f695227170f%40googlegroups.com.
>>>>  
>>>>
>>>> > For more options, visit https://groups.google.com/d/optout. 
>>>> > <file_parameter.png> 
>>>>
>>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/3e9b3b61-acbc-436c-9979-2ff265bda564%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/3e9b3b61-acbc-436c-9979-2ff265bda564%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1bd068c2-cf38-4995-bfa2-aa0584969238%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to