| Node |
Description |
Type |
Required |
Default |
| name |
The name of your project - this must be unique for any given CruiseControl.NET server |
string |
yes |
n/a |
| queue |
The name of the integration queue that this project will use. By default, each project runs in its own queue. (Added in CCNet 1.3) |
string |
no |
the project name |
| queuePriority |
The priority of this project within the integration queue. If multiple projects have pending requests in the specified queue then these requests will be executed according to their priority. Lower priority numbers indicate that integration requests for this project will execute before other projects in the same queue, however projects with priority 0 are always executed after projects with non-zero priorities in the same queue. |
string |
no |
0 |
| workingDirectory |
The Working Directory for the project (this is used by other blocks). Relative paths are relative to a directory called the project Name in the directory where the CruiseControl.NET server was launched from. The Working Directory is meant to contain the checked out version of the project under integration. Make sure this folder us unique per project to prevent problems with the build. You don't need to quote the Working Directory, even if it contains spaces. |
string |
no |
WorkingDirectory |
| artifactDirectory |
The Artifact Directory for the project (this is used by other blocks). Relative paths are relative to a directory called the project Name in the directory where the CruiseControl.NET server was launched from. The Artifact Directory is meant to be a persistence location for anything you want saved from the results of the build, e.g. build logs, distributables, etc. Make sure this folder us unique per project to prevent problems with reporting about a build. You don't need to quote the Aftifact Directory, even if it contains spaces. |
string |
no |
Artifacts |
| webURL |
A reporting URL for this project. This is used by CCTray and the Email Publisher. Typically you should navigate to the Project Report on the Dashboard, and use its URL |
string |
no |
http://localhost/ccnet |
| category |
A general category for this project. This is used by the dashboard to provide groupings to the project. Categories do not span servers. |
string |
no |
empty string |
| modificationDelaySeconds |
The minimum number of seconds allowed between the last check in and the start of a valid build.
If any modifications are found within this interval the system will sleep long enough so the last checkin is just outside this interval. For example if the modification delay is set to 10 seconds and the last checkin was 7 seconds ago the system will sleep for 3 seconds and check again. This process will repeat until no modifications have been found within the modification delay window.
This feature is in CruiseControl.NET for Source Control systems, like CVS, that do not support atomic checkins since starting a build half way through someone checking in their work could result in invalid 'logical' passes or failures. The property is optional though so if you are using a source control system with atomic checkins, leave it out (and it will default to '0') |
integer |
no |
0 |
| sourcecontrol |
See Source Control Blocks |
Source Control Block |
no |
Null Source Control Block |
| triggers |
See Trigger Blocks |
List of Trigger Blocks |
no |
Specifying an empty element (<triggers />) means integrations are only ever forced manually (for example using CCTray or the Web Dashboard.) Not including a <triggers> element at all means the project will behave like a <triggers /> element (before 1.4.3 the default when not inclufing a <triggers> was a single Interval Trigger with default configuration). |
| state |
See State Manager Blocks |
State Manager Block |
no |
[Project State Manager] |
| labeller |
See Labeller Blocks |
Labeller Block |
no |
Default Labeller |
| tasks |
A set of Tasks to run as part of the build. A failed task will fail the build and any subsequent tasks will not run. Tasks are run sequentially, in the order they appear in the configuration. |
List of Task Blocks |
no |
empty list |
| prebuild |
A set of Tasks to run before the build starts and before the source is updated. A failed task will fail the build and any subsequent tasks will not run. Tasks are run sequentially, in the order they appear in the configuration. *This section is available in the CCNet 1.1 release. |
List of Task Blocks |
no |
empty list |
| publishers |
A set of Tasks that are run after the build is complete. These tasks are used primarily to clean up after the build and to publish and report on the build results. All tasks in this section will always run regardless of whether previous tasks fail or the build is broken. You should always set an Xml Log Publisher in this section so that your Web Dashboard will be able to report results. |
List of Task Blocks |
no |
If you don't specify a <publishers /> section at all then a default Xml Log Publisher is used as the sole publisher. |
| externalLinks |
See ExternalLinks |
List of ExternalLinks |
no |
empty list |
maxSourceControlRetries |
The maximum amount of source control exceptions in a row that may occur, before the project goes to the stopped state(when stopProjectOnReachingMaxSourceControlRetries is set to true). |
int |
no |
5 |
initialState |
Sets the state of the project when CCNet service/Console starts. Stopped can be handy when you are adding a lot of projects which are depending on other projects (via the project trigger) and these may not be build right away. This value is only used when startupMode is set to UseInitialState. |
enum |
no |
Started.
Possible values are :
Stopped
Started |
startupMode |
The start-up mode to use. |
enum |
no |
UseLastState.
Possible values are :
UseInitialState
UseLastState |
stopProjectOnReachingMaxSourceControlRetries |
Stops the project on reaching maxSourceControlRetries or not. When set to true, the project will be stopped when the amount of consecutive source control errors is equal to maxSourceControlRetries. |
bool |
no |
false |
sourceControlErrorHandling |
What action to take when a source control error occurs (during GetModifications). These are the possible values :
- ReportEveryFailure : runs the publisher section whenever there is an error
- ReportOnRetryAmount : only runs the publisher section when maxSourceControlRetries has been reached,
the publisher section will only be run once.
- ReportOnEveryRetryAmount : runs the publisher section whenever the maxSourceControlRetries has been reached. When maxSourceControlRetries has been reached and the publisher section has ran, the counter is set back to 0.
|
enum |
no |
ReportEveryFailure |
| parameters |
Dynamic build parameters - these are parameters that are set at build time instead of being hard-coded within the configuration file |
Array of parameters - see Dynamic Parameters |
No |
None |
I would suggest adding opportunity to assingn several categories to a project.
Now it shows Duplicate error on attempt to add several.