How to get the demands of a pipeline created from a yaml-file? The yaml-file contains the demands:
...
jobs:
- job: my_job
displayName: My Job
pool:
name: my_pool
demands:
- Agent.Name -equals My-Agent-1
step:
...
If the pipeline is created through the user interface, then I can get the demands using the
But if I usually use the get-request for a yaml-pipeline, then the response body will not contain the demands! Do I need to parse the yaml-file myself?!
Unfortunately, I did not find an answer to my question.
CodePudding user response:
REST API Definitions - List doesn't support get the definitions inside the YAML. You need to parse the yaml-file yourself.