1
votes

I am trying to get build pipeline details using pipeline azure devops api, it is giving correct result for classic pipelines.

https://dev.azure.com/{orgname}/{projectId}/_apis/build/Definitions/{buildId}?includeAllProperties=True&includeLatestBuilds=True&api-version=6.0";

bug in case of yaml pipeline i am not able to get what is written in yaml. I want to get details of task added as yaml

Thanks

1

1 Answers

0
votes

Get the pipeline details using this method below (ref https://docs.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/get?view=azure-devops-rest-6.0)

GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}?api-version=6.0-preview.1

Which will give you the YAML file location and repository in the additional properties of configuration object of the pipeline.