How to run only web.config conversions through a command command in Jenkins

I am creating a Jenkins server to create .NET projects. We use Visual Studio Web.config transformations to convert our configuration files for each environment (Dev1, Dev2, QA and Release). I use the following command line arguments in my MSBuild command and work with conversions:

/p:Configuration=Dev1;DeployOnBuild=true;DeployTarget=Package;_PackageTempDir=..\..\deploy\current\Dev1

The problem is that I need to rebuild the solution for each environment, and some of the solutions are quite large and require some time to create. I would only like to build the solution once, and then only invoke conversions for other environments. Does anyone know a way to do this through the MSBuild command command or another way to do this in Jenkins?

+5
source share
2 answers

I ended up using this Config Transform Tool in CodePlex. This was easily done by letting us run the web.config conversions from a command line script that is easily executed during the Jenkins build phase.

+3
source

As you mentioned, Jenkins just runs the team. Take a look at Task 5 of this Microsoft Exercise . There's a different approach here .

0
source

All Articles