如何为拉取请求重新执行 TFS CI 构建集
How to re-execute a TFS CI build set for a pull request
我们为每个 Pull 请求设置了一个 CI 构建。如果由于某种原因构建失败,有没有办法为同一个 PR 重新启动构建。
您可以简单地在 Policies 下的拉取请求页面中重新 运行 失败的构建,单击队列构建,如下所示:
请注意,不要直接重新运行使用相同的管道构建,除了从PR页面排队构建策略外,这里有点不同。
Queuing the build policy from PR page does a little more than just
rerunning a build. It first needs to check if the target branch has
moved and create a new merge commit if needed. In that case it will
queue a completely new build and not rerunning the existing one. In
addition, PR source branch could move and rerunning of the build on
old merge commit would have no effect on PR policy. So at this point
we do not see much value in investing in this scenario.
Source: Rerunning failed build doesn't always count towards PR
requirement
我们为每个 Pull 请求设置了一个 CI 构建。如果由于某种原因构建失败,有没有办法为同一个 PR 重新启动构建。
您可以简单地在 Policies 下的拉取请求页面中重新 运行 失败的构建,单击队列构建,如下所示:
请注意,不要直接重新运行使用相同的管道构建,除了从PR页面排队构建策略外,这里有点不同。
Queuing the build policy from PR page does a little more than just rerunning a build. It first needs to check if the target branch has moved and create a new merge commit if needed. In that case it will queue a completely new build and not rerunning the existing one. In addition, PR source branch could move and rerunning of the build on old merge commit would have no effect on PR policy. So at this point we do not see much value in investing in this scenario.
Source: Rerunning failed build doesn't always count towards PR requirement