You can't prompt for a file in a build step, since at that point there is no 
user to ask! The jobs is already running.
If you want to prompt a user, then the  only point it makes sense to do that is 
when the job is started - Mark's suggestion tells you how to do that.

Perhaps you can explain more what you are trying to achieve here. Do you want 
to test changes before they are checked in? Or something else? What's in the 
file you want the user to upload?

Matthew
From: niraj nandane [mailto:niraj.nand...@gmail.com]
Sent: 15 October 2014 14:03
To: jenkinsci-users@googlegroups.com
Subject: Re: ask for files before build

Thanks Mark, this can help me but if there could any plugin as my requirement 
would be great

On Wed, Oct 15, 2014 at 6:23 PM, Mark Waite 
<mark.earl.wa...@gmail.com<mailto:mark.earl.wa...@gmail.com>> wrote:
There isn't a way to prompt for a file to be copied during the build, but maybe 
you could consider the File parameter from a parameterized build so that the 
person who starts the job can upload the file as part of starting the job.

https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build#ParameterizedBuild-Fileparameter

Mark Waite

On Wed, Oct 15, 2014 at 6:45 AM, niraj nandane 
<niraj.nand...@gmail.com<mailto:niraj.nand...@gmail.com>> wrote:
My scenario is as follows..
I checkout the code in scm step. Then before going to build step i want a file 
opener popup which will read a file on my harddisk and copy into jobs 
workspace.This will allow me to check the build before checking in the changes 
in scm repository. I know there is plugin called "copy-to-slave" but we need to 
give abolute path instead i want a file opener which will show UI to choose a 
file.
Any help would be greatly appreciated





-- 

This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.

Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 

Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.

Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

 







-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to