简体   繁体   English

TFS 2012构建队列顺序不正确

[英]TFS 2012 Build Queue Order incorrect

I have a question about the order in which queued builds are processed by TFS 2012. I got some info from the Microsoft site saying that the order in which builds are processed depend on the time that they are queued and their priority. 我对TFS 2012处理排队生成的顺序有疑问。我从Microsoft网站获得了一些信息,说处理生成顺序取决于它们排队的时间和优先级。

I have the following situation: 我有以下情况:

I have one build controller and two agents: - agent 1 with Tag "Build" - agent 1 with Tag "TheRest" 我有一个构建控制器和两个代理:-带有标签“ Build”的代理1-带有标签“ TheRest”的代理1

I have two build definitions: - "Build" --> Specified with the "Build" Tag - "Deploy" --> Also specified with the "Build" Tag 我有两个构建定义:-“构建”->用“构建”标记指定-“部署”->也用“构建”标记指定

I queue 5 builds of the build definition "Build". 我将构建定义“ Build”的5个构建排队。 Immediately after this, I queue a build of definition "Deploy". 之后,我立即将定义“ Deploy”的构建排队。

The "Deploy" build gets position 6 in the queue, which is correct. “ Deploy”构建在队列中获得位置6,这是正确的。 But for some reason, the "Deploy" build starts after the first "Build" build is completed. 但是由于某些原因,在完成第一个“构建”构建之后,将开始“部署”构建。

As these two build definitions have the same Tag and have the same priority, I would think that they would start sequentially in the order that I queue them. 由于这两个构建定义具有相同的Tag并具有相同的优先级,因此我认为它们将按照我对它们进行排队的顺序依次启动。 But apparently that is not the case. 但是显然不是这样。

I'm a missing something here or does somebody has an explanation for this behavior? 我在这里缺少什么,或者有人对此行为有解释吗?

Thanks 谢谢

Kind Regards, Michaël 亲切的问候,Michaël

I believe the explanation you've been given is correct. 我相信您得到的解释是正确的。 TFS attempts to load balance the builds, and has no intrinsic knowledge that one build must precede another, so it simply trundles through the builds you give it as fast as it can. TFS尝试对构建进行负载平衡,并且没有内在的知识,一个构建必须先于另一个构建,因此它只是在尽可能快地遍历您提供的构建中。

In a similar situation, I used this method to queue builds in order: 在类似的情况下,我使用此方法按顺序对构建进行排队:

http://blog.stangroome.com/2011/09/06/queue-another-team-build-when-one-team-build-succeeds/ http://blog.stangroome.com/2011/09/06/queue-another-team-build-when-one-team-build-succeeds/

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

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