开发者

CruiseControl.Net allowForceBuild per project?

From reading the docs I can tell that allowForceBuild will turn off the force build button for the server.

In my case I have 12 projects.

Once is a weekend cleanup task. 开发者_运维知识库

I want to remove the force build on this one project. Is there a way to turn off the button on a project level?

Thanks.

-


You seem to be looking for Project Level Security

Add this to your configuration:

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

If You haven't modified the configuration on the server level, forceBuild should be set to Allow by default and will be overridden in Your project then.


Nearly same reply as The Chairman. In your project config, add the security line :

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


In version 1.6+, you can hide the "Force" and "Stop" buttons in your ccnet.config:

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

Reference: Project Configuration Block

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜