I thought that Ant also had a token replacement facility as part of its standard tasks. You might refer to http://stackoverflow.com/questions/5138815/text-replace-in-xml-using-ant
On Tue, Apr 8, 2014 at 12:54 PM, Les Mikesell <[email protected]> wrote: > On Tue, Apr 8, 2014 at 12:40 PM, award <[email protected]> wrote: > > I apologize if this has already been discussed or resolved in advance; > > however, I can't seem to find the answer i'm looking for. Maybe I'm not > > asking it correctly. Any who... > > > > We are using Jenkins to poll subversion, build projects, and run unit > tests. > > This is working great! Now we want to add a step of complexity. We > want to > > replace values in the Web.Config and App.Config files at different > stages. > > Here is the most basic example: > > > > In the Web.Config and App.Configs, there will be certain values which we > > will indicate as replaceable tokens. These replaceable tokens should be > > replaced by Jenkins when running a Unit Test. For example, in my > Web.Config > > file, when the project is built, I will have the following: > > > > <add key="AuthorizeLogin" value="[AUTH_TOKEN]" /> > > > > Then, when Jenkins goes to run a unit test, I want a plugin which will go > > through and replace the specified tokens to real values. Is there an > > existing plugin to do this? Would a plugin which simply replaces the > > Web.Config file be of better use? > > You could use a shell or batch build step to do some local editing > commands (or use the Xshell or groovy plugins to do them in a > cross-platform environment). > > -- > Les Mikesell > [email protected] > > -- > 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/d/optout. > -- Thanks! Mark Waite -- 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/d/optout.
