Closed tapika closed 1 year ago
Correction to statement above:
condition: variables.runTests
condition: variables['runTests']
=> does not work.
condition: eq( variables['runTests'], True )
condition: eq( variables.runTests, True )
=> works correctly.
Hi @tapika, thank you for the suggestion. This repo is used for some questions about YAML examples and problems that you may encounter in the course of your work. To request some features for more convenient use you can post this suggestion to the Developer Community. Sorry for the late response
By default yaml does permit use of compile time variables in conditions.
For example:
this syntax is supported.
But this syntax is not supported:
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&tabs=yaml
this page mentions this as a limitation of yaml language:
For example, if you have a job that sets a variable using a runtime expression using $[ ] syntax, you can't use that variable in your custom condition.
Would it be possible to add support for runtime variable evaluation in condition ?