Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

My project platform is dotnet. we are having three jobs in jenkins for our project they are prod, testand dev. My issue is every time after completion of build i need to change database names for dev and test manually in web config file. How to avoid this manual process? Are there any plugins or scripts to make it automate? please explain me.

Thanks in advance.

What I have tried:

I tried inject plugin. But i dont know how to write the script
Posted
Updated 14-Dec-18 6:36am
v2

1 solution

Two words "Config transformations"

web-config-transformations


After you have your config transformations setup in your solution it is a small changes in Jenkins to the MSBuild step to add Command Line Arguments specifying the configuration
/t:Build /p:Configuration=Test
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900