question

VennilaV-9090 avatar image
0 Votes"
VennilaV-9090 asked BillakantiKushal-0778 published

Run Pipeline Rest API - execute with branch name

In our project, we are triggering pipeline through Runs REST API, following the steps mentioned in this page - https://docs.microsoft.com/en-us/rest/api/azure/devops/pipelines/runs/run%20pipeline?view=azure-devops-rest-6.0 .
Now, we created the pipelines in feature branch and tried to invoke using the above API, we are getting below exception.

{
"$id": "1",
"innerException": null,
"message": "An error occurred while loading the YAML build pipeline. File /delete.yml not found in repository https://dev.azure.com/{}/{}/_git/{} branch refs/heads/master version 201d2723d992a6ce0575838046970367098296a.",
"typeName": "Microsoft.Azure.Pipelines.WebApi.PipelineValidationException, Microsoft.Azure.Pipelines.WebApi",
"typeKey": "PipelineValidationException",
"errorCode": 0,
"eventId": 3000
}

When we add the pipeline yml file in master branch, we are able to trigger it using the API. But if we should not use the master branch, and use a different branch, how we can pass the branch parameter in this API call? Please suggest.

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

tbgangav-MSFT avatar image
0 Votes"
tbgangav-MSFT answered BillakantiKushal-0778 published

Hi @VennilaV-9090,

Azure DevOps is currently not supported in this Microsoft Q&A platform. You may ask Azure DevOps related questions in this developer community.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

i am also facing same issue what to do?

0 Votes 0 ·

i am also facing same issue what to do?

0 Votes 0 ·