FAKE - F# Make


TeamCityHelper

Contains helper functions which allow FAKE to communicate with a TeamCity agent

Functions and values

Function or valueDescription
ComparisonFailure (...)
Signature: name:string -> message:string -> details:string -> expected:string -> actual:string -> unit

Reports a failed comparison.

EncapsulateSpecialChars text
Signature: text:string -> string

Encapsulates special chars

FinishTestCase testCaseName duration
Signature: testCaseName:string -> duration:TimeSpan -> unit

Finishes the test case.

FinishTestSuite testSuiteName
Signature: testSuiteName:string -> unit

Finishes the test suite.

getChangedFilesInCurrentBuild ()
Signature: unit -> seq<string>

Gets the changed files

getRecentlyFailedTests ()
Signature: unit -> seq<string>

Gets the recently failed tests

IgnoreTestCase name message
Signature: name:string -> message:string -> unit

Ignores the test case.

IgnoreTestCaseWithDetails (...)
Signature: name:string -> message:string -> details:string -> unit

Ignores the test case.

PublishArticfact path
Signature: path:string -> unit
PublishArtifact path
Signature: path:string -> unit

Publishes an artifact on the TeamcCity build server.

ReportBuildStatus status message
Signature: status:string -> message:string -> unit

Reports the build status.

ReportProgress message
Signature: message:string -> unit

Reports the progress.

ReportProgressFinish message
Signature: message:string -> unit

Reports the progress end.

ReportProgressStart message
Signature: message:string -> unit

Reports the progress start.

sendStrToTeamCity s
Signature: s:string -> unit

Send message to TeamCity

sendTeamCityError error
Signature: error:string -> unit

Sends an error to TeamCity

sendTeamCityFXCopImport path
Signature: path:string -> unit

Sends an FXCop results filename to TeamCity

sendTeamCityNUnitImport path
Signature: path:string -> unit

Sends an NUnit results filename to TeamCity

sendToTeamCity format message
Signature: format:StringFormat<(string -> string)> -> message:string -> unit

Send message to TeamCity

SetBuildNumber buildNumber
Signature: buildNumber:string -> unit

Sets the TeamCity build number.

SetBuildStatistic key value
Signature: key:string -> value:string -> unit

Reports a build statistic.

SetTeamCityParameter name value
Signature: name:string -> value:string -> unit

Reports a parameter value

StartTestCase testCaseName
Signature: testCaseName:string -> unit

Starts the test case.

StartTestSuite testSuiteName
Signature: testSuiteName:string -> unit

Starts the test suite.

TeamCityBuildConfigurationName
Signature: string option

The Name of the Build Configuration the current build belongs to or None if it's not on TeamCity.

TeamCityBuildIsPersonal
Signature: bool

Is set to true if the build is a personal one.

TeamCityBuildNumber
Signature: string option

The Build number assigned to the build by TeamCity using the build number format or None if it's not on TeamCity.

TeamCityProjectName
Signature: string option

The Name of the project the current build belongs to or None if it's not on TeamCity.

TeamCityVersion
Signature: string option

The Version of the TeamCity server. This property can be used to determine the build is run within TeamCity.

TestFailed name message details
Signature: name:string -> message:string -> details:string -> unit

Reports a failed test.

Fork me on GitHub