Hi,

First install the plugin:
https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin

2.
create a file .

3. inject the file

4. call the desired build with the parameter from the file .

Example:

[cid:image001.png@01CFBAC9.964DFD00]


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Alex Brodov
Sent: Monday 18 August 2014 09:34
To: jenkinsci-users@googlegroups.com
Subject: Re: How can i upload a text file and use it as a parameter


Could you give me some example?
I tried yesterday and it didn't work..

Thanks,
Alex
On Aug 18, 2014 9:23 AM, "Adam Guja" 
<adam.g...@gmail.com<mailto:adam.g...@gmail.com>> wrote:
Yes, use this plugin

W dniu poniedziałek, 18 sierpnia 2014 08:18:59 UTC+2 użytkownik Alex Brodov 
napisał:

I want to put a path to a txt file, and each build this parameter will read the 
content of the file.
Is it possible?

Thanks,
Alex
On Aug 18, 2014 9:09 AM, "Adam Guja" 
<adam...@gmail.com<mailto:adam...@gmail.com>> wrote:
Not sure, based on your description, which scenario would suit you best, but 
here's the plugin you need:
https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin

Let me know if you need any help with it

W dniu niedziela, 17 sierpnia 2014 17:25:43 UTC+2 użytkownik Alex Brodov 
napisał:
I have a txt file which is dynamic file, it's updating during every build, i 
want to use the content of the file which holds some string inside as a Jenkins 
parameter so i can use the content of the file, i'm trying to figure out how 
can i do that.
--
You received this message because you are subscribed to a topic in the Google 
Groups "Jenkins Users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/jenkinsci-users/azJhV4_6pmE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-use...@googlegroups.com<mailto:jenkinsci-use...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google 
Groups "Jenkins Users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/jenkinsci-users/azJhV4_6pmE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.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 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to