-1
and(succeeded(), eq(variables.isMain, true))

Is it possible to parameterize 'true'. as we have 100's of projects. we need to have one parameter which we can modify to reflect it in all the projects.

Syed Aman
  • 19
  • 4

1 Answers1

-1

As noted in the comment above more details would be helpful but I believe based on your scenario yes you can parametrize a stage. Would recommend doing an if condition before the stage is loaded based on your parameter. This would avoid the compilation issue of a parameter being read into the stage name.

 - ${{ if eq(parameters.value,true) }} :
  - stage: xyz
DreadedFrost
  • 2,602
  • 1
  • 11
  • 29