K. B.
K. B.

Reputation: 3690

See referenced build from another builds (pipelines) in Azure Devops

I want to delete some legacy builds in Azure DevOps, but I could not find all their parent builds that trigger them. I want to see their references. This is applicable for task groups, but I could not find this functionality for builds.

From:
https://learn.microsoft.com/en-us/azure/devops/pipelines/library/task-groups?view=azure-devops

In the References tab you can expand lists of all the build and release pipelines, and other task groups, that use (reference) this task group. This is useful to ensure changes do not have unexpected effects on other processes.

Is there a way to see build references from the UI (no YAML)? We are using pipelines with Trigger Build tasks in them.

enter image description here

Upvotes: 0

Views: 466

Answers (1)

wade zhou - MSFT
wade zhou - MSFT

Reputation: 8127

I want to delete some legacy builds in Azure DevOps, but I could not find all their parent builds that trigger them.

If you use pipeline resource trigger in yaml, besides you can find the trigger info from yaml definition, you can also find the trigger build in the current build result page. You can click on the link and it will navigate to the trigger build. enter image description here

If you use classic UI editor in the build, there should be trigger build completed definition as below:

enter image description here

In addition, there are predefined variables to find the triggered build info. You can export the info in the pipeline if you'd like.

enter image description here

Edit:

You are using "Trigger Build" task, the task will use Personal access token by default to trigger the new build. It works same as the user manually trigger the new build. In this scenario, you cannot's find the parent pipeline.

Upvotes: 1

Related Questions