Skip to content

Commit

Permalink
Error messages are sent to TeamCity with status ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Sep 27, 2018
1 parent d703d14 commit 0ba928c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/Fake.BuildServer.TeamCity/TeamCity.fs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ module TeamCity =
let internal warning message =
TeamCityWriter.sendToTeamCity "##teamcity[message text='%s' status='WARNING']" message

/// Sends a warning message.

This comment has been minimized.

Copy link
@otto-gebb

otto-gebb Sep 27, 2018

Contributor

Sends an error message.

let internal error message =
TeamCityWriter.sendToTeamCity "##teamcity[message text='%s' status='ERROR']" message

/// TeamCity build parameters
///
/// See [Predefined Build Parameters documentation](https://confluence.jetbrains.com/display/TCD18/Predefined+Build+Parameters) for more information
Expand Down Expand Up @@ -403,7 +407,7 @@ module TeamCity =
| TraceData.ImportantMessage text ->
warning text
| TraceData.ErrorMessage text ->
ConsoleWriter.write false color true text
error text
| TraceData.LogMessage(text, newLine) | TraceData.TraceMessage(text, newLine) ->
ConsoleWriter.write false color newLine text
| TraceData.ImportData (ImportData.BuildArtifactWithName _, path)
Expand Down

0 comments on commit 0ba928c

Please sign in to comment.