azure-devopsazure-pipelines-yaml

Preview state of azure pipeline yaml after supplying it with runtime parameters


Sometimes I wonder... What the hell is my pipeline looking like when I build it with some parameters. I have many customizations based on those and at times I'm lost when trying to deduce how it would look like.

Is it somehow possible to see "built" version of yaml? In Azure or with third-party tools?


Solution

  • To know how the parameters of a YAML pipeline are expanded during a build, we can download logs of the build; and in the downloaded logs.zip file, we can proceed to check the azure-pipelines-expanded.yaml file.

    Original YAML pipeline definition Image

    azure-pipelines-expanded.yaml Image

    Besides, we are able to find the expanded value for the runtime parameter in the logs from the web UI and the initializeLog.txt file from the downloaded logs.zip package file. Image

    In addition, if your runtime parameter has a default value, you can download full YAML via pipeline editor to preview the expanded YAML definition with default values before a build.

    Image