NAnt-Extensions
Help
Task Reference
<tc-buildstatus> |
v1.0.17.116 |
Reports the build status to TeamCity.
This task will only be executed within a TeamCity build.| Attribute | Type | Description | Required |
|---|---|---|---|
| message | string | The message to include with the status report. | False |
| type | StatusType | The status type to report to TeamCity. If you do not specify this value, just the message is reported. | False |
| failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
| force | bool | If true then the task is forced to execute regardless of running in a TeamCity build. The default value is false. | False |
| if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. | False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
<tc-buildstatus message="The build has failed"
type="Failure" />
{build.status.text} is an optional substitution pattern which represents the default status message, calculated automatically by TeamCity using passed test count, compilation messages and so on. Note that it is not possible to append multiple messages to the build status, as {build.status.text} resolves to the default build status text as calculated by TeamCity. To append multiple messages, use the <tc-statustext> task.
The resulting message will be <default status text>, Code Coverage <x>% .
<tc-buildstatus message="{build.status.text}, Code coverage: ${math::round(double::parse(codecoverage))}%" />