dmitryserbin / azdev-release-orchestrator

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

Stage names containing spaces and commas - Suggestions? #78

Open pijemcolu opened 2 years ago

pijemcolu commented 2 years ago

Hi! Truly a gem of a task for people who need to orchestrate a lot of pipelines!

Any suggestion how to handle stage names with commas and spaces in the name :see_no_evil: ? Is this supported? E.g.: ''Build, Test, Dockerize & Pack"

I add a "reproducible" example below.

Yaml task definition:

        steps:
          - ${{ each value in parameters.Pipelines }}:
            - task: releaseorchestrator@3
              displayName: Orchestrate services deployment
              inputs:
                projectName: "Cloud Team"
                definitionName: ${{ value }}
                strategy: ${{ parameters.Strategy }}
                stages: ''Build, Test, Dockerize & Pack"
                branchName: ${{ parameters.Branch }}

Debug log from a run of the orchestrator:

2022-06-29T11:28:20.079Z release-orchestrator:BuildSelector:getStages [ 'Build, Test, Dockerize & Pack',
  'Release to ***',
  'Release to ***',
  'Release to ***',
  'Release to ***',
  'Release ***' ]
##[debug]ignoreFailure=false
##[debug]task result: Failed
##[error]Definition <***> (***) does not contain <Build> stage
##[debug]Processed: ##vso[task.issue type=error;]Definition <***> (***) does not contain <Build> stage
2022-06-29T11:28:20.081Z release-orchestrator:TaskHelper:fail Task <Failed> result (ignore failure <false>)
##[debug]Processed: ##vso[task.complete result=Failed;]Definition <***> (307) does not contain <***> stage
Finishing: Orchestrate service deployment
rockit666 commented 1 year ago

Hi, I created a new ticket. Maybe you have the same issue. *** is a secret in pipeline. I'm not sure if this works. https://github.com/dmitryserbin/azdev-release-orchestrator/issues/80