We have a .NET Jenkins installation that builds a few .NET apps. These apps include a bunch of *.exe
and *.exe.config
files. Right now, I save the app as a zipfile containing all of the *.exe, the required DLLs and *.xml
files, and the default *.exe.config
files. The default *.exe.config
get their value from what is in the Subversion repository and is tuned for the production environment.
The *.exe.config
files contain the database name, the database server, the name of the server, etc. These are correct for the production environment, but not for UAT, QA, or developer testing.
What I'd like to do is have some sort of post-build task where a user can specify the particular build, and the values for those particular parameters that vary from environment to environment. If I got that, I could run an Nant or Ant task that unzips the zipfile, munges the *.exe.config
file and either deploy it (my ultimate goal), or at least zip that up and put it somewhere the user can access it.
I know there's a parameterized build, and I know there are batch tasks, but I need a combination of the two. Is that possible?