03Oct

Authoring custom release gates

Release gates allow controlled automatic collection of health signals from external services,
 and promote the release when all signals indicate a healthy deployment. 

In this example, we'll add a release gate to validate code coverage on a module before deployment.

Add gate to the release pipeline

1. Once the extension is installed on your account, you can add the new gate to your release pipelines.

2. Enable Gates and add Code Coverage to the gate.

    add-code-coverage

 

3. The release would wait for the cumulative code coverage for the chosen module  to reach the threshold before proceeding to the next stage. Configure the gate as shown below.

    configure-code-cover...

 

Task Inputs

Parameters Description
Artifact Select the build artifact
Module (Case sensitive) Name of the module or dll to evaluate
Code Coverage Type Line: to evaluate the number of lines not covered
  Block: to evaluate the number of blocks not covered 
Coverage Threshold Set the maximum threshold for line or blocks to pass the gate

 

Gates in action

When the number of lines not covered is less than the threshold, the gate is passed.

Example : Lines not covered - 37 Threshold - 38 - Pass

code-coverage-passed

When the number of lines not covered is greater than the threshold, the gate is failed.

Example: Lines not covered - 37 - Threshold - 36 - Pass

code-coverage-failed

Related

Microsoft Azure Consultant

·         Executing technical feasibility as...

Read More >

Webinar - Plugging for Cloud, Right or Wrong?

Please watch LIVE RECORDING Video of the webinar session below which took place on 28th Ja...

Read More >

What's New In C# 6.0?

Microsoft has released the preview version of Visual Studio 2015 and .NET 4.6 for developers to try ...

Read More >

How to build a client side Repeater Using jQuery and ASP.NET AJAX

jTemplate is a template engine plug-in for jQuery and is commonly used to display tabular data ...

Read More >

Microsoft Azure Stack : Power of Azure in our datacentre

Why Azure Stack?Microsoft Azure Stack is a new hybrid cloud platform product that enables our organi...

Read More >

Creating an RDLC report in Asp.Net

Step 1.  Create a new website and Add DataSet to the WebsiteRight Click on the project, Add new...

Read More >

NAV – Connecting Microsoft Dynamics CRM customized entities

This blog is intended to see how Microsoft Dynamics NAV (here onwards NAV) can be connected to exter...

Read More >

Create Restful service using Web API

What is Asp.Net Web API?Asp.Net Web API is a framework for building HTTP services that can be consum...

Read More >

End to End Testing Using Visual Studio 2010. (Power of Visual Studio-Ultimate for Testing. )

Scenario:Usage of Manual Test case(MTM) to perform the Load Test using Visual Studio 2010.We call it...

Read More >

Setup Jenkins for VSO with TFVC

Jenkins provides an easy-to-use Continuous Integration method, making it easier for developers to in...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
Tags
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *