Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>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:</p> <ul> <li>Pull code (we use Git but there's a Mercurial plugin for Jenkins as well)</li> <li>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)</li> <li>Run msbuild (another Jenkins plugin) <ul> <li>Build file is our .sln (or you can use a web .csproj -- the arguments are slightly different)</li> <li>Command line arguments: <ul> <li>/p:Configuration=Dev /p:Platform="Any CPU" /p:DeployOnBuild=true /p:DeployTarget=Package /p:DeployIisAppPath="dev.mycompany.com/" /v:m</li> </ul></li> <li>This builds a .zip file, a .cmd file, and some .xml files, which contain everything you need to deploy updates to your site</li> </ul></li> <li>Kick off two other "msdeploy" Jenkins jobs, one on each .NET web server <ul> <li>Each .NET web server is also a Jenkins slave</li> <li>We have two servers in testing, balanced via NLB</li> <li>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</li> <li>The .cmd file executes msdeploy, which pushes everything you need out to your dev web server</li> </ul></li> </ul> <p>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.</p> <p>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.</p> <p>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.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload