Skip to content
WaelHamze edited this page Jan 20, 2017 · 2 revisions

The xRM Continuous Integration (CI) Framework is a set of tools that makes it easy and quick to automate builds and deployment of your CRM components.

This will allow you to setup a fully automated DevOps pipeline so you can deliver CRM more frequently in a consistent and reliable way.

Build->Deploy->Test->Release

VSTS Build & Release Tasks

The xRM CI Framework provides you with VSTS Build and Release tasks. You can combine these tasks with other tasks to create build and release definitions to meet your project needs. If you are using VSTS this is the quickest and easiest way to get up and running.

Below is a list of tasks that is included with the xRM CI Framework

Task Catalog

Sample PowerShell Scripts for Dynamics CRM

These are sample scripts that demonstrate how to use some of the PowerShell Cmdlets provided with this framework and the Dynamics CRM SDK. You can execute these scripts from your workstation, from your Build/CI System (VSTS, Jenkins, Team City, etc...) and from your Release Automation Tools (VSTS, CA Lisa, etc...). These scripts implement the typical scenarios you will need to automate your builds and releases.

Below is a list of some of the main sample scripts:

  • Import Solution - Imports a CRM solution, including error handling, downloading import logs and checking existing versions
  • Deploy Package - Deploy a Dynamics CRM Deployment Package
  • Export Solution - Export a CRM solution from your environment and extracts the contents into your local folder bound to your source control system
  • Pack Solution Packs a solution using the SolutionPackager.exe

Custom PowerShell Cmdlets for Dynamics CRM

PowerShell allows you to automate various processes by scripting the tasks that are normally performed manually on servers and applications.

The xRM CI Framework provides you with PowerShell “Cmdlets” to allow you to script some of the task that are normally executed manually during the build and/or deployment of your Dynamics CRM Solutions. The most commonly used actions would be things like exporting your CRM solutions. Below is a list of Cmdlets available now.

PowerShell Cmdlets

These are the generic commands/actions that you can then combine together in PowerShell scripts to implement the right process for your project needs.