简体   繁体   English

Azure DevOps 构建管道卡在加载构建历史记录

[英]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. Azure DevOps 构建管道卡在加载构建历史记录时,少数管道会发生这种情况,但其余的都很好。 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.我们正在为这些管道使用其他 git 连接。 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.它可以与功能其他分支一起正常工作并显示历史记录,但不适用于Main分支。 Am confusing why it is not loading the build history for the Main branch.我很困惑为什么它不加载Main分支的构建历史。 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.在 Azure DevOps 中,您可以使用保留策略来设置将运行、发布和测试存储在系统中的时间。 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. 管道 - 支持列表API 以获取特定管道的所有运行历史记录。

在此处输入图像描述

Update 1更新 1

I have checked the official doc for Azure DevOps Server.我查看了 Azure DevOps Server 的官方文档。

This API is supported via TFS2020.此 API 通过 TFS2020 得到支持。

在此处输入图像描述

But not supported via TFS2019.但不受 TFS2019 支持。

在此处输入图像描述

For TFS and API version mapping, you could check this link .对于 TFS 和 API 版本映射,您可以查看此链接

For Version 5.0 supported API.对于版本 5.0支持的 API。 I could see there is API to get the builds by build ID, but not pipeline.我可以看到有 API 可以通过构建 ID 获取构建,而不是管道。

在此处输入图像描述

Update 2更新 2

You could check why this run is being retained on the pipeline summary page.您可以在管道摘要页面上检查为什么要保留此运行。

在此处输入图像描述

在此处输入图像描述

For GitHub repo, as addressed here ,对于 GitHub 存储库,如此所述,

All other Git repositories: Azure Pipelines retains the configured number of latest runs for the whole pipeline.所有其他 Git 存储库:Azure Pipelines 保留为整个管道配置的最新运行次数。

There are other related settings could affect the build pipeline retention policy, for example, if the build pipeline provides an Artifact.还有其他相关设置可能会影响构建管道保留策略,例如,如果构建管道提供工件。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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