Skip to content

Commit

Permalink
Merge pull request #1049 from tolu/add-TeamCity-blocks
Browse files Browse the repository at this point in the history
TC: Add open-close block helpers
  • Loading branch information
forki committed Dec 22, 2015
2 parents 8a907b9 + b742cb6 commit 1650c0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/FakeLib/TeamCityHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ let sendToTeamCity format message =
let sendStrToTeamCity s =
if buildServer = TeamCity then postMessage (LogMessage(RemoveLineBreaks s, true))

/// Open Named Block
let sendOpenBlock = sendToTeamCity "##teamcity[blockOpened name='%s']"

/// Close Named Block
let sendCloseBlock = sendToTeamCity "##teamcity[blockClosed name='%s']"

/// Sends an error to TeamCity
let sendTeamCityError error = sendToTeamCity "##teamcity[buildStatus status='FAILURE' text='%s']" error

Expand Down

0 comments on commit 1650c0e

Please sign in to comment.