Azure DevOps Release

Prerequisites

a) You should have defined and created your build process which will package up your scripts from a release control or manifest file

b) If you are using the "Reversal Feature" you need to have packaged up your templates so that they can be used to create the reversal.

Define the Pipeline

The first step is to create the release and define the artifacts, this should include the output of the build and your templates, and then add the environments. For full details on how to configure Azure DevOps Release please refer to the Microsoft documentation for your particular version as it may look different from what is shown below:

Set Json Parameters

The first step is to read the build parameters, you can use the supplied Set Json Parameters for this purpose to read the parameters that we wrote into the build.

Execute Command Line Utility

Use the Execute DataStar Command Line Utility Task to run the deployment and generate the reversal scripts. This task has many configuration options so please refer to the documentation, an example is shown below:

Add Work Item History

You can configure an optional step to write the details of the deployment to the work item history, using the standard Add Work Item History Task.

Retain Build

An optional step can be added to the relevant environment pipeline to retain the Azure DevOps Build using the standard DataStar Update TFS Build Utility Task.

Tag Build

An optional step can be added to apply a tag to the associated Build using the standard DataStar Tag Build Utility.