简体   繁体   English

azure devops 按顺序运行构建管道

[英]azure devops run build pipelines sequentially

Whenever multiple builds are running on the same pipeline only the first build completes and the rest error.每当多个构建在同一管道上运行时,只有第一个构建完成并出现 rest 错误。

I would the builds to run sequentially instead of in parallel like they are now, so that if two developers check-in at about the same time, the second build will also complete.我希望构建按顺序运行,而不是像现在这样并行运行,这样如果两个开发人员几乎同时签入,第二个构建也将完成。

When editing the pipeline in the execution plan under the Parallelism heading I have the radio button set to "none" and they still seem to try to run in parallel anyway.在并行标题下的执行计划中编辑管道时,我将单选按钮设置为“无”,并且它们似乎仍然尝试并行运行。

Can anyone suggest how to solve this issue?谁能建议如何解决这个问题?

enter image description here在此处输入图像描述

It seems you have multiple build agents.看来您有多个构建代理。 Assuming you are using self-hosted build agents, you could specify certain demands of the agent to use only one agent.假设您使用的是自托管构建代理,您可以指定代理的某些要求以仅使用一个代理。 In this way, if the agent is not free, the build will keep waiting.这样,如果代理不空闲,构建会一直等待。 To use a particular agent, add a demand of Agent.Name equals agentname , check the screenshot below.要使用特定代理,请添加Agent.Name equals agentname的需求,请查看下面的屏幕截图。 Agent name can be found in capabilities of the agent.代理名称可以在代理的能力中找到。

在此处输入图像描述

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

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