huserben / TfsExtensions

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

Enhancement: Support YAML style buildParameters mapping #137

Closed krispenner closed 4 years ago

krispenner commented 4 years ago

It would be super awesome to support parameters like any other task/template would in YAML.

So instead of:

buildParameters: 'name1:value1,name2:value2'

It would be:

buildParameters:
  name1: value1
  name2: value2
huserben commented 4 years ago

Hi @krispenner

I agree that would be nicer. However I wouldn't know how to do that, as I didn't find anything online after a quick search.

Also when this would be changed it has to be made sure that it's backward compatible, so all existing usages don't break.

So if you have any idea how to implement let me know, so I could have a look whether it's feasible.

krispenner commented 4 years ago

Oh I have no idea, I'm not sure how the YAML parser injects it's values into your task. I've not built any custom tasks myself.

huserben commented 4 years ago

Ok. I will leave it then as it's now, as I did not figure out another way of doing it.

However as you pointed out in #136 I will try to provide a better yaml documentation