X
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

Subversion (Centralized Version Control System)

Version control system is a repository of files, often the files for the source code of computer pro...

Read More >

VSTS on Mobile

Thank you for the overwhelming response for our first release of VSTS on mobile app. More than thous...

Read More >

Quality is Our Mantra – Successful Completion of the Surveillance Audit

Canarys has successfully completed the Surveillance Audit and has been certified for ISO 9001:2008. ...

Read More >

Azure Consulting Service

We are Microsoft Cloud Solution Providers (CSP) Canarys helps you achieve higher productivity, ...

Read More >

Microsoft Dynamics NAV 2018 User Task

User Tasks is a one of the new feature added in Microsoft Dynamics NAV 2018.In this you can create t...

Read More >

Implementing Security to your DevOps Pipeline

Hi all, today in this post I'm gonna talk about "Implementing Security to your DevOps Pipel...

Read More >

Yes. It is Another Gold!

Keeping up the trend of staying current with the latest and the greatest technologies, Canarys has n...

Read More >

India’s First - Microsoft Gold Competency in Application Lifecycle Management

By earning the Microsoft Gold Competency in Application Lifecycle Management, Canarys became the Fir...

Read More >

Instructions for configuring the VS2010 Virtual image in Windows Virtual PC (Windows 7)

Instructions for setting up VS2010 Hands-on labs:Minimum Hardware requirements: Processor :  &n...

Read More >

Share

Try DevOpSmartBoard Ultimate complete Azure DevOps End-to end reporting tool

Sign Up

  • Recent
  • Popular
  • Tag
Monthly Archive
Subscribe
Name

Text/HTML
Text/HTML
Contact Us
  • *
  • *