Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Unify Release is a simple build task for Azure DevOps to enable two or more builds from the same source code to trigger a single Release.

License

Notifications You must be signed in to change notification settings

LATAMOCPTECHTEAM/azuredevops-unify-release

Repository files navigation

Work In Progress - Not Yet Avaliable for use

Azure Devops Unify Release Task

Develop Branch:

Build status Azure DevOps tests Azure DevOps coverage

Release Branch: (1.1) - Preview Deployment

Build status Release Azure DevOps tests Azure DevOps coverage

Unify Release is a simple build task for Azure DevOps to enable two or more builds from the same source code to trigger a single Release.

By default if you have a release that get triggered by two different builds (even if those builds are triggered from the same source version), this release will be run for each time one of this builds are completed

Azure DevOps tests

With the unify release task, you are able to control the releases in a way that two builds triggered from the same source version can generate only one release.

Azure DevOps tests

This scenario is common especially with Mono Repository approach, where you need to make changes in two different applications that must go live in the same release.

How does it works

  1. The Unify release tasks when executed from a Build pipeline, checks the other builds triggered from the same source version.

  2. If no builds are pending it will create a build tag that you can use to filter in your release pipeline.

  3. If there's a build pending, it will not create the build tag, so your release pipeline (with the build tag filter enabled) will not be triggered.

In this way, only the last build to finish will create the build tag and the pipeline will be run.

How to Use It

  1. Install the Unify Release Task from the Azure DevOps Marketplace.

  2. Put the Unify release task in your build pipelines as the last task to be executed.

  3. In your Agent Configuration, active the Flag: Allow scripts to access the OAuth token

Azure DevOps tests

  1. In your Release Artifacts, put a Build Tag filter for the build tag you configured on the Unify Release Task (default to create_release).

Task Options

Parameter Description Default Value
Release Tag Name of the build tag that will be created if the build is the last one to be completed. create_release
Wait for All Triggered Builds Indicates that the Unify Release Task should consider all build definitions tiggered by the same source version. When wait for all triggered builds is false, you can specify which builds the Unify release task is going to consider to evaluate if the build tag should be created. true
Project Project where the build definitions to be considered are stored. null
Related Definitions Indicate which build definitions should be considered by the unify release task. null
Release on Error Indicate that the build tag should be created even if one of the related builds fails. false
Release on Cancel Indicate that the build tag should be created even if one of the related builds is cancelled. false

About

Unify Release is a simple build task for Azure DevOps to enable two or more builds from the same source code to trigger a single Release.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published