Toolboxcategory cloud |
ViewsPersonal toolsCruiseControl.NET ExampleFrom Seapine Labs(Redirected from Surround SCM CruiseControl.NET Example)
[edit] Example ccnet.config
<cruisecontrol>
<project name="SurroundSCM_WithNUnit" webURL="http://localhost/ccnet">
<sourcecontrol type="surround">
<executable>E:\Program Files\Seapine\Surround SCM\sscm.exe</executable>
<serverconnect>198.187.16.177:4900</serverconnect>
<serverlogin>buildbot:builder</serverlogin>
<branch>Programs</branch>
<repository>Programs/SSCM/SSCMClone</repository>
<workingDirectory>E:\Temp\CCBuildDir\SSCMClone</workingDirectory>
<recursive>1</recursive>
<file>*</file>
<searchregexp>0</searchregexp>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe</executable>
<workingDirectory>E:\Temp\CCBuildDir\SSCMClone</workingDirectory>
<projectFile>SSCMClone.sln</projectFile>
<buildArgs>/p:Configuration=Debug</buildArgs>
<targets>Rebuild</targets>
<timeout>15</timeout>
<logger>E:\JDev\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger>
</msbuild>
<nunit path="C:\Program Files\NUnit 2.4\bin\nunit-console.exe">
<assemblies>
<assembly>C:\Program Files\NUnit 2.4\bin\mock-assembly.dll</assembly>
</assemblies>
</nunit>
<exec>
<executable>C:\snap.bat</executable>
<buildTimeoutSeconds>10</buildTimeoutSeconds>
</exec>
</tasks>
<publishers>
<xmllogger logDir="log" />
</publishers>
</project>
</cruisecontrol>
[edit] Branching and LabelingBecause of the way that Integration Properties work, it is best to use a batch file to create a branch or label after build and unit tests have been completed. This is because those variables cannot be used in the config file directly but will be expanded when you execute from batch. A batch file might look like this:
Creating a label would be done in similar fashion only using the label command instead of the make branch command. [edit] User SecurityThe buildbot user in this example has read-only access at the file level. The user has create branch rights but can only login from the CLI. This is necessary because the username and password will be displayed in plain text in the build reports and any batch files used to create snapshots or labels. This allows the user to get the latest source code and create the snapshot branch, while preventing users who know the login credentials from performing other activities like a check in, rename, or remove. The Surround SCM security group set up can be configured to meet any need, so the user can perform additional operations if the group settings allow it.
|


