Game Development Reference
In-Depth Information
run at midnight. You can change the time to run with the “time” attribute (you
have to specify military time). The “buildCondition” attribute modifies when the
CCNet project will build. If you specify “ForceBuild”, then the project will always
run even if there are no changes noted in source control. You can also set the
“buildCondition” attribute to “IfModificationExists” which will make the project
run only if there are changes.
A source control tag is used to let the server know what type of source control
application you are using. CCNet has support for many types of source control,
including AlienBrain, Perforce, and Subversion. CCNet uses this tag to connect to
your source control and sync the directories you specify. In this way, CCNet can
operate the tasks on the latest files and work as a continuous integration server. In
our example, we set up the source control tag to use Perforce (see Listing 4.5).
<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>
</project>
</cruisecontrol>
Listing 4.5. Setting up the Perforce source control tag.
Search WWH ::




Custom Search