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
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.