I am creating a custom task for Azure pipeline using TypeScript.
I have defined a filePath
input:
{
"name": "myFile",
"label": "file to read",
"type": "filePath",
"required": true,
"groupName": "files",
"helpMarkDown": "file to read",
"defaultValue": "",
"visibleRule": "getFile = true"
},
The user is supposed to be able to define an unknown number of paths in the task.
Is there a way to somehow generate the input dynamically in the task in a way that if a user browse a path, the gui will present another
filePath
input? If there is an option like that, how can I also iterate over them and download all the files to the pipeline?An alternative to 1 - I can have a simple string input in which I instruct the user to enter several paths. In this scenario how does a user extract the path of the file in the repo without the help of the browse button that the
filePath
input gives you?