I have a YAML template with parameters:
- name: Deploy_Test1
type: boolean
default: false
- name: Tests
type: object
default:
- "Test1"
- "Test2"
After that I iterate the Tests
with each
:
- ${{ each test in parameters.Tests}}:
Inside the each
I can get the test
value with ${{test}}
.
I want to use the parameter Deploy_Test1
but dynamically, for example:
echo ${{ parameters.Deploy_${{test}} }}
In the above syntax I get an error that is invalid.
Is there is a way or a workaround to do it?