I'm trying to find a way to list all the variables defined in an Azure Devops pipeline. I've found examples using env
in a script but that gets all environment variables and any defined in my yaml have their names changed (to upper case and _ instead of .)
What I'd like is just the variables dictionary output. I've tried
- ${{ each value in variables }}:
- script: echo ${{ value.key }} ${{value.value}}
But that makes one CmdLine task for each variable rather than just echoing them all in one task to make it easy to read