microsoft / azure-pipelines-yaml

Azure Pipelines YAML examples, templates, and community interaction
MIT License
1.19k stars 924 forks source link

Custom expression/function in Yaml #601

Closed FreesonM3as closed 3 months ago

FreesonM3as commented 9 months ago

Hope to be able to provide a custom function in yaml by a Azure DevOps Extension contribution point. For example:

- template: sometemplate.yaml
  parameters:
     parameterContext: ${{ merge(parameters.parameterContext, convertFromJson('{"dryRun":true}') ) }}

where merge and convertFromJson are custom functions.

max-zaytsev commented 3 months ago

Please post your suggestion on the Developer Community to get the right eyes on it, since this repo is mostly for questions about templates located in this repo.