Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit 531e859

Browse files
committed
better default example : works on windows 7
specify state folder and artifact folder
1 parent ee3ccb0 commit 531e859

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

project/service/ccnet.config

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
2-
<!-- This is your CruiseControl.NET Server Configuration file. Add your projects below! -->
3-
2+
<!-- This is your CruiseControl.NET Server Configuration file.
3+
Add your projects below! -->
44

55
<project name="MyFirstProject"
66
description="demoproject showing a small config">
77

8+
<!-- specify a state folder to prevent CCNet from saving it in Program Files\CruiseControl.NET\server
9+
programs may not standard write their data in it on windows Vista and up)
10+
-->
11+
<state type="state" directory="C:\CCNet\State" />
12+
13+
14+
<!-- specify a artifactDirectory to prevent CCNet from saving it in Program Files\CruiseControl.NET\server
15+
programs may not standard write their data in it on windows Vista and up)
16+
-->
17+
<artifactDirectory>C:\CCNet\BuildArtifacts\MyFirstProject</artifactDirectory>
18+
19+
820
<triggers>
9-
<!-- check the source control every X time for changes,
21+
<!-- check the source control every X time for changes,
1022
and run the tasks if changes are found -->
1123
<intervalTrigger
1224
name="continuous"
@@ -15,18 +27,18 @@
1527
initialSeconds="5"/>
1628
</triggers>
1729

18-
<sourcecontrol type="nullSourceControl"
19-
alwaysModified="true">
20-
</sourcecontrol>
21-
30+
<sourcecontrol type="nullSourceControl"
31+
alwaysModified="true">
32+
</sourcecontrol>
33+
2234
<tasks>
23-
<exec>
24-
<!-- if you want the task to fail, ping an unknown server -->
25-
<executable>ping.exe</executable>
26-
<buildArgs>localhost</buildArgs>
27-
<buildTimeoutSeconds>15</buildTimeoutSeconds>
28-
<description>Pinging a server</description>
29-
</exec>
35+
<exec>
36+
<!-- if you want the task to fail, ping an unknown server -->
37+
<executable>ping.exe</executable>
38+
<buildArgs>localhost</buildArgs>
39+
<buildTimeoutSeconds>15</buildTimeoutSeconds>
40+
<description>Pinging a server</description>
41+
</exec>
3042
</tasks>
3143

3244
<publishers>

0 commit comments

Comments
 (0)