2

有没有办法保护 Cruisecontrol 中的构建项目节点?我想限制对特定用户使用强制构建。

4

1 回答 1

4

这可以通过<security>在项目配置中添加标签来完成。

<project name="TestProject">
  <security type="defaultProjectSecurity" defaultRight="Deny">
    <permissions>      
      <rolePermission name="TestProjectAdmin" ref="FractionFactionAdmin" />
    </permissions>
  </security>
</project>

<internalSecurity>
  <cache type="inMemoryCache" duration="30" mode="sliding"/>
  <users>
     <passwordUser name="user1" password="change"/>
     <passwordUser name="user2" password="change"/>
  </users>
  <permissions>
    <rolePermission name="TestProjectAdmin" defaultRight="Allow" forceBuild="Allow" viewProject="Allow" startProject="Allow">
       <users>
         <userName name="user1"/>
         <userName name="user2"/>
       </users>
    </rolePermission>  
 </permissions>
</internalSecurity>

试试这样

于 2011-07-27T06:27:41.623 回答