Hi, You can use: http://ant.apache.org/manual/Tasks/replace.html
From: [email protected] [mailto:[email protected]] On Behalf Of veeravel B Sent: Tuesday 31 December 2013 13:50 To: [email protected] Subject: How to pass parameter to a .txt file from Jenkins build.xml Hi, I have been using Jenkins to execute my automation scripts and I have come across an situation where I need start different URLs when my different jobs triggered periodically. Hence, i need to pass parameter from build.xml to update my existing script file (.txt). Could anyone pls help? 1. I have two jobs Test A (buildA.xml) and Test B(buildB.xml) 2. I will have different files to execute like file1, file2, file3, file4 3. File 1 will have the configuration details like URL ="www.google.com<http://www.google.com>" So when my Texst A job get executed www,google.com will be launched initially and when Test B gets executed i wanted to launch www.yahoo.com<http://www.yahoo.com>. Thanks, Veera -- 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]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
