Game Development Reference
In-Depth Information
The <workingdirectory> block specifies where on the local hard drive the
project directory is found. The “name” attribute is the project name that will
show up on the CCNet website. The server will generate XML logs whenever a
build is started. You tell it where to put those logs with the <artifactDirectory>
block. They can be cleaned up using the artifact clean-up publisher that is covered
later. The <category> tag can be used to organize projects. For example, if two
projects are building the same game but for different platforms, similarly named
categories can help group these projects. The <webURL> is the reporting URL for
the project. It is used by the email publisher and CCTray to link clients to the
server website [Roberts and Willems 10]. The <modificationDelaySeconds> block
is used to specify the time delay in seconds before checking the source control for
changes. Typically, this setting should be more than a minute to avoid flooding the
source control server with trac.
The next thing that we want to add is a schedule trigger. Schedule triggers are
not necessary for a CCNet project, but they are useful if you want, for example,
nightly builds of your game. Listing 4.4 shows the schedule trigger settings.
The <scheduleTrigger> is set so that the CCNet project runs on the days
specifiedinthe <weekDay> block. The trigger In Listing 4.4 has the CCNet project
<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>
</project>
</cruisecontrol>
Listing 4.4. Adding in a schedule trigger.
Search WWH ::




Custom Search