Azure DevOps pipeline runs API does not return System variables

Shrav Mehta 21 Reputation points
2024-06-26T18:36:40.1866667+00:00

Azure DevOps pipeline runs API does not return system variables to identify runs belong to a particular pull request. The API documentation has variables field but in the API response it's returning empty. In the pipelines build variables documentation, System variables (predefined) are expected to be set automatically should return in the API response so that we can get info like System.PullRequest.PullRequestId and System.PullRequest.SourceBranch to match run with a pull request.
Is there any reason why the variables field is empty for a pipeline's runs response or it might not include all the runs?

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

1 answer

Sort by: Most helpful
  1. Michael Taylor 50,676 Reputation points
    2024-06-26T18:50:43.3833333+00:00

    We do not currently provide support for Azure DevOps on this site. Please post over in their official support channel on Stack Overflow.

    0 comments No comments