/continuousDeliveryDemo

Demo for http://southdakotacodecamp.net/sessions/101 about Continuous Delivery and the new Microsoft Build system in 2015

Primary LanguageC#MIT LicenseMIT

Continuous Delivery Presentation and Demo

Demo for Using Visual Studio Online's new build system to achieve a Continuous Delivery pipeline, given on November 7th, 2015. about Continuous Delivery and the new Microsoft Build system in 2015.

Build setup

  1. New build - use build > Build, Deploy, and Distributed Test template
  2. setup
  3. add Unit test step
  4. add deploy to Azure website step (help)
  5. add /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(Build.StagingDirectory)" to build's MSBuild arguments, to create Azure package
  6. Azure Subscription > manage > create new Azure subscription (so VSO can do the deployment, only need the first time for a VSO project)
  7. creates the azurewebsites.net automatically, but not in your resource group :-( - move to different resource group - not required
  8. add **/*.zip to publish build artifacts

Steps to get Selenium tests running

  1. create Windows 10 enterprise - in https://portal.azure.com, this is also possible through a PowerShell script. You'll want more than 1 to run tests in parallel.
  • set the user when creating the VM.
  1. get the ip address of that VM (shutting down and starting gives you a different IP, will scripting this help manage this)
  2. Go to the test tab in the VSO project
  • add Machine Group,
  • the user will be the same you created in step 1.
  • Port: 5985
  1. RDP into the agent, instal Firefox and other browser that you want to run tests on.

Trials and Troubleshooting

setup an build agent.... https://app.pluralsight.com/library/courses/tfs-build-2015-first-look/table-of-contents http://chamindac.blogspot.com/2015/07/setup-tfs-2015-windows-build-agent.html https://msdn.microsoft.com/Library/vs/alm/Build/agents/windows

Main Points

  1. Microsoft has greatly improved their build system.
  2. You can get started quickly, but there is a lot of depth to dig into.
  3. Visual Studio Online gets the latest code, then it is rolled out to on premise TFS installs.
  4. You can build non-Microsoft technologies with it and run NodeJs NPM, Bower and Grunt/Gulp tasks in it.

Links

Continuous Delivery

Visual Studio Online/TFS Build

Dig Deeper

Testing (there are a lot more opinions and subject matter on this)

Specifications By Example

Other build technology offerings: