Deploying ASP.NET web applications is a breeze with Jenkins and can really improve continuous integration/testing environment for UAT. It is also possible to do production deployments with scheduled builds.
In your ASP.NET setup > manage your publish profiles.
Here we have two profile Production and Staging. This gives us a Development environment (localhost), Staging Test (UAT environment), and Production environment. The profiles both point to shares where our web applications are stored.
From the Visual Studio aspect this is the only piece we will need – except for the entire project.
Jenkins will need to hook into your Version Control Management system to know when to do builds.
Here’s a typical CI staging hook:
In this scenario we are using SVN (SubVersioN) to know when to kick off our build.
We will poll for any new changes every 5 minutes.
With our staging profile built and in our VCS we can build with that configuration with MS Build.
This is a simple scenario with Jenkins to build your ASP.NET web applications quickly.