DevOps - Disabling stages in a release pipeline

Pranav Raj

I have a Release pipeline with ~20 stages. Depending on the kind of release we are doing, we decide to run some subset of these stages.

Running each stage is expensive and we do not want to run it unless absolutely necessary.

Is there a direct way to disable some stages at the time of kicking off the release, so that we execute only the absolute necessary stages in the release?

If not, then what is the best programmatic way of achieving this behavior?

Jayendran

Currently, there is no option to disable the stages based on the conditions. I'd suggest you can submit feedback for this feature

As Daniel Suggest you should create separate release pipelines for your use case

Another option is to you can define that conditions in the task level with your stages to skip.

For Example,

You have 3 stages:

  • DEV
  • QA
  • PROD

Each Stage have 2 task:

  • Task 1
  • Task 2

Let say if you don't want to deploy in QA.

Then you can define your custom condition for the 2 Tasks in QA in order to skip the execution.

You can refer my answer for working with custom conditions.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Cannot create Release Pipeline in Azure DevOps

Problems with param block in a Azure Devops release pipeline

Azure DevOps Release Pipeline Fails Every Time

Artifact not being downloaded in release pipeline - Azure DevOps

Control Job Order in Azure DevOps Release Pipeline

Azure Devops logging commands in release pipeline

Reuse Azure DevOps pipeline for GitHub release

Azure DevOps ordering the release stages

Why is this Azure DevOps pipeline release failing?

Replicate the changes in all stages of a release pipeline in Azure Devops

automating release pipeline creation Azure Devops

Azure Devops Build Pipeline - Unexpected value stages

Pass Azure devops release pipeline(Classic editor) output variable to multiple jobs in same stage or to multiple stages outside

Dynamic variable group for Azure DevOps release pipeline

Grab files from Azure DevOps Release Pipeline

Azure DevOps pass parameter between release stages not build

Release pipeline - share Artifacts between docker stages

Azure Devops Server: Share files between stages in Classic Release pipeline

Azure Pipeline Multi-Stages in YAML vs Separate Release

DevOps Release Pipeline on-premise TaskModuleSqlUtility

Azure Devops Release Pipeline - ARM - utcNow

Azure DevOps Classic Release Pipeline Debug

Azure Devops pipeline yml looping over stages

Azure Devops Release pipeline variables

Azure Devops Release Pipeline - Run this job Custom Condition when certain stages succeed

Azure Devops Trigger a Pipeline from Multiple Stages of Other Pipeline

Run first two stages parallelly in Azure DevOps pipeline

Run two stages in Azure DevOps Pipeline "partially" parallel

Azure DevOps release stages is there a limit of how many stages you can have?