| You are viewing documentation of TeamCity 4.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version. |
|
For MSBuild, TeamCity provides the following service tasks that implement the same options as the service messages: TeamCitySetBuildNumberTeamCitySetBuildNumber allows user to change BuildNumber: It is possible to use '{build.number}' as a placeholder for older build number. TeamCityProgressMessageTeamCityProgressMessage allows you to write progress message. TeamCityPublishArtifactsTeamCityPublishArtifacts allows you to publish all artifacts taken from MSBuild item group TeamCityReportStatsValueTeamCityReportStatsValue is a handy task to publish statistic values TeamCitySetStatusTeamCitySetStatus is a task to change current status text and/or message *'{build.status.text}' is substituted with older status text. |
1 Comment
comments.show.hideFeb 24, 2009
Sire404
To make msbuild run project files with these TeamCity-specific servicemessages in them, use the following hack:
Add a condition that is only true when built through TeamCity, like this:
<TeamCityProgressMessage
Condition="'$(TEAMCITY_BUILD_PROPERTIES_FILE)' != '' "
Text="Message to the TC interface" />
Thanks to Dave Oilar!
(http://www.jetbrains.net/devnet/thread/279897)