huserben / TfsExtensions

Extensions for TFS 2015+ such as custom Widgets (require TFS 2017) and Build Tasks
MIT License
45 stars 22 forks source link

Enhancement: Provide full YAML example #136

Closed krispenner closed 3 years ago

krispenner commented 4 years ago

This is truly amazing, great work!

It would be great if you could expand on your current YAML example and include every possible input. For example, I had to dig into your source code to find the name of the buildParameters parameter for use in YAML.

huserben commented 4 years ago

Hi @krispenner

Up to @rfennell PR last week I wasn't even considering yaml much, so there is not much documented yet.

However having an example with every possible input might be a bit too big, as you have lots of options. Also you have cases where some inputs can be skipped (e.g. definition of url to the server).

If you use the assistant in the yaml editor you should get all the names of the variables etc.

I could add the yaml definition to the individual inputs in the documentation, that might be a good compromise. However also that will require some time and it's currently not on the top of my priority list

rfennell commented 4 years ago

Wanted to generate Yaml documention for all my extensions, so I wrote my YAMLGenerator task which builds the yaml docs from the manifest files you can use this in the extensions release pipeline.

I have a worked example of my release pipeline here

Does that help?

huserben commented 4 years ago

Hi @rfennell

that looks awesome, I'll try it out as soon as I can :-)

Many thanks for sharing this 👍

rfennell commented 4 years ago

Forgot to point out, look in the yamlgenerators tests for a commented out test harness that allows it to be run outside a release pipeline, it is good for giving it a test locally