Game Development Reference
In-Depth Information
format the output. You can find the custom MSBuild logger through a search of
the ThoughtWorks CruiseControl.NET website [Roberts and Rodemeyer 07].
4.3.4 Publishers
It is common practice for email notifications to be sent when the build is broken.
You can send email notifications to leads, producers, or anyone who would like to be
notified by email. You can also use publishers to clean up build logs and generate
statistics for the project. Listing 4.7 demonstrates how the email publisher is set
up.
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<queue name="Q1" duplicates="ApplyForceBuildsReAdd"/>
<project name="MyFirstProject">
<workingDirectory>C:\WorkingDir</workingDirectory>
<artifactDirectory>C:\WorkingDir\CCNetArtifacts</artifactDirectory>
<category>Super Awesome Game</category>
<webURL> http://192.168.7.216:8080/ViewFarmReport.aspx < /webURL>
<modificationDelaySeconds>100</modificationDelaySeconds>
<triggers>
<scheduleTrigger time="00:00" buildCondition="ForceBuild"
name="Scheduled">
<weekDays>
<weekDay>Monday</weekDay>
<weekDay>Tuesday</weekDay>
<weekDay>Wednesday</weekDay>
<weekDay>Thursday</weekDay>
<weekDay>Friday</weekDay>
</weekDays>
</scheduleTrigger>
</triggers>
<sourcecontrol type="p4">
<view>//depot/MyProject/...</view>
<executable>C:\Program Files\Perforce\p4.exe</executable>
<client>MyServerWorkspace</client>
<user>JohnSmith</user>
<password>SuperSecretPassword1234</password>
<port>YourSourceControlMachine:1666</port>
<timeZoneOffset>0</timeZoneOffset>
<autoGetSource>true</autoGetSource>
<forceSync>false</forceSync>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
\MSBuild.exe</executable>
<workingDirectory>C:\WorkingDir\source</workingDirectory>
<projectFile>MyProject.sln</projectFile>
<buildArgs>/p:Configuration=Debug</buildArgs>
<targets>Build;Test</targets>
<timeout>900</timeout>
Search WWH ::




Custom Search