Thad Peiffer
Thad Peiffer

Reputation: 638

Create VSTS/TFS build task dynamic inputs

Regarding: https://github.com/Microsoft/vsts-tasks

Is it possible to create a task that acts like the Get sources Workspace mappings, where I can have an [+ Add] button to add as many values as needed?

here is an example

I've been looking through documentation and sample blogs, but all examples I find have a pretty basic task.json. And I haven't found another task to add that has this functionality.

Thanks!

Upvotes: 0

Views: 446

Answers (1)

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29976

This cannot be achieve. The "Add" option you see is not for build tasks just as virusstorm mentioned.

For build tasks, you can only specify a fixed number of inputs in the task.json. We are working on adding dictionary input which may help you with this kind of issues.

Refer to these links for details:

Support complex input types

Multiple task inputs

Upvotes: 1

Related Questions