Forum Discussion
comcastnet1935
Nov 16, 2022Copper Contributor
You can only execute a Rest API Task through an agentless job?
I was looking for examples of using the Azure DevOps Rest API from within a pipeline yml file (without using postman). Get info about another build, get or update Board issues info, whatever. I ...
Chandra415
Mar 15, 2023Copper Contributor
Hey can you please let me know how you used InvokeRESTAPI@1 task ?
My requirement is to get the triggerInfo.scheduleName information via API call and pass it to next stages in the pipeline.
My requirement is to get the triggerInfo.scheduleName information via API call and pass it to next stages in the pipeline.
- comcastnet1935Mar 15, 2023Copper ContributorI never used it. When editing a pipeline, it is a task that you can add (for Agentless pipelines).
https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/invoke-rest-api-v1?view=azure-pipelines&tabs=yaml
If you are using a pipeline that uses a build agent, there are many samples out there, here is one, https://www.opentechguides.com/how-to/article/azure/201/devops-rest-powershell.html