When I run the pipeline the UI shows specific field to collect the input and run the template based on the condition. I am trying to get the parameter and convert it to variable and use it in my condition.
paramerers:
- name: environment
type: string
default: ''
variables:
environment : $(environment)
Trying to run a template based on condition. The conditional variable is set through an API During Queue time
stages:
- ${{ if eq(variables['environment'], 'test') }}:
- template: azure-test-template.yml
- ${{ if eq(variables['environment'], 'prod') }}:
- template: azure-prod-template.yml
The template is never Executed irrespective of the value set in environment
is this a bug or is there something i'm not doing right?