capabilities.work

Run and Monitor a Pipeline

A 3-step recipe with Azure DevOps. We can help you get access.

Recipe · 3 steps

Run and Monitor a Pipeline

with Azure DevOps · Continuous Integration Management

Run a pipeline, poll the run to completion, and list its artifacts.

  1. Start a new run of the pipeline against the requested branch.
  2. Fetch the run by ID and check its state. While the run is still in progress, loop back and poll again; once completed, continue to the artifacts step.
  3. List the artifacts produced by the completed pipeline run.
What you'll need to have ready
  • apiVersion: Azure DevOps REST API version (e.g. 7.1).
  • pipelineId: Numeric ID of the pipeline to run.
  • branchRef: Branch ref for the self repository (e.g. refs/heads/main).
  • accessToken: Azure DevOps bearer (OAuth 2.0) access token.
For your developer

Arazzo workflow microsoft-azure-devops:run-and-monitor-pipeline, 3 operations: runs_run → runs_get → artifacts_list. Specs on APIs.io.