简体   繁体   中英

Azure DevOps build pipeline stuck at loading build history

Azure DevOps build pipelines stuck at loading the build history, It is happening for few pipelines but rest are fine. When I recreate these pipelines with same templates, those all are working fine and showing the build history, but am worrying why particular these pipelines are not showing. We are using the other git connection for these pipelines. Is it because of too long build history. I use the filters to load the history. Its working fine with feature and other branches and showing the history but not for Main branch. Am confusing why it is not loading the build history for the Main branch. How can I sort out this issue. Please someone help me on this. Am sharing the pics of above issue with and without filters. Thank you.

Without filters continuous loading page在此处输入图像描述

child branch build history with filters在此处输入图像描述

Main branch continuous loading page with filters在此处输入图像描述

Picture for retention policies在此处输入图像描述

Pipeline retention policy在此处输入图像描述

Yes, it is caused by long build history on the main branch. Since it shows correctly when recreating these pipelines with same templates.

In Azure DevOps, you could use Retention policies to set how long to keep runs, releases, and tests stored in the system. To save storage space, you could delete older runs, tests, and releases.

在此处输入图像描述

Pipelines - List API is supported to get all the history runs from a specific pipeline.

在此处输入图像描述

Update 1

I have checked the official doc for Azure DevOps Server.

This API is supported via TFS2020.

在此处输入图像描述

But not supported via TFS2019.

在此处输入图像描述

For TFS and API version mapping, you could check this link .

For Version 5.0 supported API. I could see there is API to get the builds by build ID, but not pipeline.

在此处输入图像描述

Update 2

You could check why this run is being retained on the pipeline summary page.

在此处输入图像描述

在此处输入图像描述

For GitHub repo, as addressed here ,

All other Git repositories: Azure Pipelines retains the configured number of latest runs for the whole pipeline.

There are other related settings could affect the build pipeline retention policy, for example, if the build pipeline provides an Artifact.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM