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

Managing your text messaging with Manage My SMS

Have you ever been bothered by the bank notifications, payment reminders, lottery wins on your mobil...

Read More >

Troubleshooting load test threshold violations

Threshold Violations after running load test.Threshold Violation: Network Interface - Byte...

Read More >

Software Services

The whole world has come to realize the role played by Information Technology and looking at ways to...

Read More >

Partnership Program

We understand that the world of technology is changing rapidly from day to day and businesses have m...

Read More >

How to handle the exceptions using recovery scenario manager in QTP?

VB script Error HandlingDurning run time, if QTP encounters any erorr then it will display the error...

Read More >

VSTS on Mobile

.main{width:677px;float:left;font: 13px/1.5 'tahoma', verdana, arial, sans-serif;}#slider1 { height:...

Read More >

Create a Basic Bot with the Bot Builder SDK for.NET

A bot is a software that is designed to automate the tasks you would usually do on your own, like bo...

Read More >

Why move to VSTS?

Using many features of VSTS allow you to get started quickly and even make it easier to build, ...

Read More >

Migrating Work Items from 1 Team Project to another Team Project in VSTS

Hi ya'll, in this post I am gonna show you how to migrate work items from 1 Team Project (TP) to ano...

Read More >

How to add Overlay in Windows phone 8

Windows Phone is windows mobile operating system from Microsoft.In my project, there was a requireme...

Read More >

Share

Comments

CcWbHjhtamyRs
12/11/2019 1:22:15 AM | Reply

Post a Comment

  • Recent
  • Popular
  • Tag
Tags
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *