Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7535135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:14:22+00:00 2026-05-30T06:14:22+00:00

I have an ASP.NET MVC 3 Website in C# with ASP.NET MVC 3 Internet

  • 0

I have an ASP.NET MVC 3 Website in C# with

  • ASP.NET MVC 3 Internet Project
  • Domain Project (Class Library)
  • Unit Testing Project
  • SQL Server 2008 R2 Database
  • Source Control on Mercurial

What is the easiest way to do a 12:00AM automated nightly build and deployment of the site so that everyday I could go to dev.mycompany.com and would see a live updated version of my Dev version?

I was thinking of using Jenkins to do all of the building.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:14:24+00:00Added an answer on May 30, 2026 at 6:14 am

    I help maintain a system much like this — in Jenkins. Obviously the details will vary based on your project structure, but here’s roughly what our Jenkins job does:

    • Pull code (we use Git but there’s a Mercurial plugin for Jenkins as well)
    • Execute any SQL schema changes against our testing DBs from an idempotent script (we use an Ant script which pre-dates our use of Hudson/Jenkins)
    • Run msbuild (another Jenkins plugin)
      • Build file is our .sln (or you can use a web .csproj — the arguments are slightly different)
      • Command line arguments:
        • /p:Configuration=Dev /p:Platform=”Any CPU” /p:DeployOnBuild=true /p:DeployTarget=Package /p:DeployIisAppPath=”dev.mycompany.com/” /v:m
      • This builds a .zip file, a .cmd file, and some .xml files, which contain everything you need to deploy updates to your site
    • Kick off two other “msdeploy” Jenkins jobs, one on each .NET web server
      • Each .NET web server is also a Jenkins slave
      • We have two servers in testing, balanced via NLB
      • Each “msdeploy” job copies the .zip/.cmd/.xml files from the build server to a temporary location on the web server and then runs the .cmd file
      • The .cmd file executes msdeploy, which pushes everything you need out to your dev web server

    We have a separate job that runs our NUnit tests, but you could just as easily incorporate your tests into your main job. One of the reasons we build the whole .sln instead of the web .csproj is so we can run our unit tests from the same built code.

    If you haven’t already, you will need to install ASP.NET MVC3, .NET 4, and msdeploy on the build server, and I believe you’ll need most of the same files on your web servers as well.

    For scheduling, you can choose “build periodically” or “poll SCM” as your build trigger, and then use cron-like syntax (0 0 * * *) to run daily at midnight.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an asp.net mvc website with a SQL server backend. For every table
I have a asp.net-mvc website with a SQL server backend (using nhibernate for OR
I have an ASP.NET MVC 3 Beta website using SQL Server CE 4.0. With
I have developed a website using Asp.Net MVC which uses a SQL CE database
I have an ASP.NET MVC website and an area project called 'Admin'. So far
I have a an ASP .Net MVC website which works fine when testing locally.
This is an ASP.NET MVC website. Following domain driven design, we have a service
I'm building an ASP.Net MVC website. Rather than have everything in one project, I've
I have an ASP.NET MVC website where I've established a system of Permissions. There
i have a asp.net mvc website and the volume of traffic is increasing. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.