23 people following this project (follow)

Project Description
Provides a customized TFS Build workflow and PowerShell scripts to get started with Continuous Integration (automated builds) in SharePoint 2010/TFS 2010. This pack will allow you to automatically build and deploy WSPs using TFS, and optionally also include automated testing as part of the build such as Visual Studio 2010's Coded UI Tests.


Overview

Possibly the most complex aspect of CI with TFS and SharePoint is understanding how PowerShell deployment scripts should integrate with the build workflow, and how return values for success/failure should be passed back. This project aims to solve this problem so you can focus on implementing any CI steps which are specific to your solution. The bottom of this page has links to more info on Continuous Integration for SharePoint.

This pack provides:
  • 2 x build workflows:
    • SPBuild.xaml - has automated assembly versioning (from sister project TFS 2010 simple assembly versioning - requires installation of this solution)
    • SPBuild_NoVersioning.xml - no versioning, no external dependency
  • A set of PowerShell scripts which perform the following functions:
    • Deal with PowerShell remoting from build server to SharePoint 'deploy' server
    • Perform SharePoint deployment steps (e.g. call Update-SPSolution to upgrade WSPs)
    • Many utility functions to support SharePoint WSP deployment (e.g. wait for solution deployment timer job to complete, recycle app pool then hit URL etc.) N.B. Some of this PowerShell is from Gary Lapointe so credit goes to him, many thanks Gary!
    • Perform teardown/setup steps for testing (e.g. delete/recreate site collection)

The following images show something of these artifacts:

Build workflow

BuildDef_WorkflowZoomedIn.png

PowerShell

PowerShell_CIDeployScripts.png

More information

Last edited Oct 23 2011 at 11:14 PM by chrisobrien, version 9