This page last changed on Dec 10, 2009 by csut017.

Full Example

Here is the full configuration for the example. I have omitted the duplicate projects since this scenario is focusing on the security:

<cruisecontrol>
  <internalSecurity>
    <users>
      <!-- Authenticated users -->
      <passwordUser name="bob" display="Bob (Team Lead)" password="bob1"/>
      <passwordUser name="jane" display="Jane (BA)" password="jane2"/>
      <passwordUser name="john" display="John (QA)" password="john3"/>
      <passwordUser name="joe" display="Joe (QA)" password="joe4"/>
      <!-- Generic role -->
      <simpleUser name="*"/>
    </users>
    <permissions>
      <!-- Roles -->
      <rolePermission name="Testers" forceBuild="Allow" defaultRight="Deny">
        <users>
          <userName name="john"/>
          <userName name="joe"/>
        </users>
      </rolePermission>
      <rolePermission name="Releasers" forceBuild="Allow" defaultRight="Deny">
        <users>
          <userName name="bob"/>
          <userName name="jane"/>
        </users>
      </rolePermission>
    </permissions>
  </internalSecurity>
  <project name="WinApp1-QA">
    <workingDirectory>C:\Build\WinApp1-QA</workingDirectory>
    <artifactDirectory>C:\Build\WinApp1-QA\Deploy</artifactDirectory>
    <webURL>http://localhost/server/local/project/WinApp1-QA/ViewProjectReport.aspx</webURL>
    <!-- Source control block defined here -->
    <triggers>
      <intervalTrigger buildCondition="IfModificationExists" seconds="300"/>
    </triggers>
    <tasks>
      <!-- Tasks defined here -->
    </tasks>
    <publishers>
      <!-- Publishers defined here -->
      <xmllogger/>
    </publishers>
    <security type="defaultProjectSecurity" defaultRight="Deny">
      <permissions>
        <!-- Grant permissions to this project -->
        <rolePermission name="Testers" ref="Testers"/>
        <rolePermission name="Releasers" ref="Releasers"/>
      </permissions>
    </security>
  </project>
  <!-- Other projects defined here -->
</cruisecontrol>
Document generated by Confluence on Jan 23, 2011 08:52