Azure DevOps REST API call trigger type

Murugesa Pandian 86 Reputation points
2022-11-20T11:03:16.267+00:00

Hi experts,

I am trying to use the Azure DevOps REST API references to trigger the pipeline. It always shows the trigger type is "Manual", Is there any other special Trigger Type for this ? I am using the Azure DevOps API Runs reference as mentioned here https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/runs?view=azure-devops-rest-7.1

Already I am running the particular stage with condition of trigger type "Manual, Schedule" , Now I wanted to identify and put condition based on the trigger or by calling the API through Post too.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,202 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Roderick Bant 2,046 Reputation points
    2022-11-20T11:50:33.913+00:00

    Hi @Murugesa Pandian

    Azure DevOps is supported through the Azure DevOps community on techcommunities

    I do however know the answer to your question. Azure DevOps provides a limited set of Build.Reasons. These are specified in the table in the docs

    Builds triggered on demand are scheduled as Manual builds whether triggered through the UI or the API. If you need custom reasons a solution would be to add a parameter with a default value that you can override when triggering from the REST API

    0 comments No comments