dmitryserbin / azdev-release-orchestrator

Azure DevOps extension to manage and orchestrate release pipelines
MIT License
23 stars 12 forks source link

How to skip an stage on new build #101

Open gregorypilar opened 5 months ago

gregorypilar commented 5 months ago

Hi!

I have a pipeline with two stages: Green stage, Blue stage

If I use the task like this :

  - task: releaseorchestrator@3
    displayName: infra-bicep
    inputs:
      endpointType: 'integrated'
      projectName: 'Dev'
      definitionName: 'infra'
      strategy: 'new'
      branchName: 'main'
      skipTracking: true
      updateInterval: 5
      stageStartAttempts: 10
      stageStartInterval: 60
      approvalInterval: 60
      approvalAttempts: 10

It works it calls the infra pipeline a runs both stages

But If I want Only to run one stage, Green stage,

  - task: releaseorchestrator@3
    displayName: infra-bicep
    inputs:
      endpointType: 'integrated'
      projectName: 'Dev Sandbox'
      definitionName: 'infra-bicep'
      strategy: 'new'
      stages: 'Green Stage'
      branchName: 'main'
      skipTracking: true
      updateInterval: 5
      stageStartAttempts: 10
      stageStartInterval: 60
      approvalInterval: 60
      approvalAttempts: 10

I got this error :

Failed retrying <queueRun> for <10> times. Error: 'Deploy Blue stage' is not a valid stage to skip.

Any Idea why this could be happening?

neunarendrac commented 5 months ago

Hi!

I am also having same kind of issue, and my stages are dependent on other stages. I am getting error for those stages, if we don`t mention any stage name then it is working properly and triggering for all stages in the release. But we want to create release for specific stage only.

Please Prioritize and fix this at earliest.

image

dmitryserbin commented 5 months ago

Thanks for reaching out guys.

The error you're seeing is coming from ADO API and might be a valid response depending on the target pipeline configuration. Could you please share the YAML of your target pipeline? Also, it would be great if you could run the orchestration pipeline with debug mode on and share the log.