sfpowerscripts logo sfpowerscripts

Release pipelines are one of the most exciting benefits of using Azure Pipelines, which is not just for Continous Integration but can also act us an automated release orchestrator. This sample pipeline demonstrates how to orchestrate an installation of an unlocked package across various environments.

This pipeline is manually triggered by some one releasing a previously build artifact to the the environment. This could be automated using the various mechanisms available in Azure Pipelines

Pipeline Snapshot

 

You can import and modify this pipeline using the file provide in the link

Tasks Snapshot in one of the stages

The steps that are part of the pipeline in an individual stage are

  1. Install SFDX CLI
  2. Authenticate an Org( In this case, it is authenticating against DevHub)
  3. Authenticate an Org( In this case, it is authenticating against the Sandbox to be deployed)
  4. Install a version of the unlocked package to the target environment

It is recommended to have a variable group created per environment,such as in the figure and associate it with each stage of the pipeline