VSTS构建已过期 [英] VSTS Build expired

查看:87
本文介绍了VSTS构建已过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个拉动请求,该拉动触发了构建,并且构建成功,但是一段时间后,我的构建状态更改为构建过期",因此要完成拉动请求,我需要再触发一次.所以问题是:为什么会发生这种情况?如何避免过期的构建?

I created a Pull Request which triggers the build and the build was successful, but after some time my build status changed to "build expired" so to finish the pull request I need to trigger it one more time. So the question is: Why has this happened and how do I avoid an expired build?

推荐答案

"Build Expired"是分支策略的功能. 设置构建到期时间,以确保对受保护分支的更新不会破坏打开的请求请求中的更改.

"Build Expired" is a feature of branch policies. Set a build expiration to make sure that updates to your protected branch don't break changes in open pull requests.

始终需要新的版本

此选项在更新受保护分支时将拉取请求中的构建策略状态设置为失败".您必须重新排队生成以刷新生成状态.此设置可确保即使受保护的分支发生更改,拉取请求中的更改也会成功构建.此选项最适合具有重要分支且变更量较小的团队.在繁忙的开发分支中工作的团队可能会发现,每次更新受保护的分支时,等待构建完成都会造成破坏.

This option sets the build policy status in a pull request to "failed" when the protected branch is updated. You must re-queue a build to refresh the build status. This setting ensures that the changes in pull requests build successfully even as the protected branch changes. This option is best for teams that have important branches with a lower volume of changes. Teams working in busy development branches may find it disruptive to wait for a build to complete every time the protected branch is updated.

如果时间超过...小时,则需要新的版本

如果通过的版本早于输入的阈值,则受保护的分支更新时,此选项将使当前策略状态失效.此选项是在受保护分支更新时始终需要构建与从不要求构建之间的折衷方案.当您的受保护分支频繁更新时,此选择非常适合减少构建数量.

This option expires the current policy status when the protected branch updates if the passing build is older than the threshold entered. This option is a compromise between always requiring a build when the protected branch updates and never requiring one. This choice is excellent for reducing the number of builds when your protected branch has frequent updates.

不需要新的版本

对受保护分支的更新不会更改策略状态.这样可以减少分支的构建数量,但是在关闭最近未更新的请求请求时可能会导致问题.

Updates to the protected branch do not change the policy status. This reduces the number of builds for your branch, but can cause problems when closing pull requests that haven't been updated recently.

有关分支机构政策"的详细信息

这篇关于VSTS构建已过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆