CruiseControl.Net每个项目的allowForceBuild?

时间:2010-02-17 16:11:08

标签: cruisecontrol.net

从阅读文档我可以告诉allowForceBuild将关闭服务器的强制构建按钮。

在我的情况下,我有12个项目 曾经是周末清理任务。

我想删除这个项目的强制构建。有没有办法在项目级别关闭按钮?

感谢。

-

3 个答案:

答案 0 :(得分:1)

您似乎在寻找Project Level Security

将此添加到您的配置中:

<project>
  <!-- [...] -->
  <security type="defaultProjectSecurity">
    <permissions>
      <userPermission name="*" forceBuild="Deny" />
    </permissions>
  </security>
  <!-- [...] -->
</project>

如果您尚未在服务器级别修改配置,则默认情况下forceBuild应设置为Allow,然后将在您的项目中覆盖。

答案 1 :(得分:1)

主席几乎相同的回复。 在项目配置中,添加安全线:

<project name="xxx">
  <!-- Source control block defined here -->
  <!-- Tasks defined here -->
  <!-- Publishers defined here -->
  <security type="defaultProjectSecurity" forceBuild="Deny">
  </security>
</project>

答案 2 :(得分:1)

在版本1.6+中,您可以隐藏ccnet.config中的“强制”和“停止”按钮:

<project name="xxx">
  <!-- Source Control -->
  <!-- Tasks -->
  <!-- Publishers -->
  <showForceBuildButton>False</showForceBuildButton>
  <showStartStopButton>False</showStartStopButton>
</project>

参考:Project Configuration Block

相关问题