FAKE - F# Make - A DSL for build tasks and more FAKE
6.0.0

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

TeamCity.Environment Type

Exported environment variables during build. See the official documentation for details.

Static members

Static member Description

Environment.Branch

Full Usage: Environment.Branch

Returns: string option

Get the branch of the main VCS root

Returns: string option

Environment.BranchDisplayName

Full Usage: Environment.BranchDisplayName

Returns: string option

Get the display name of the branch of the main VCS root as shown in TeamCity See the documentation for more information

Returns: string option

Environment.BuildConfigurationName

Full Usage: Environment.BuildConfigurationName

Returns: string option

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

Returns: string option

Environment.BuildIsPersonal

Full Usage: Environment.BuildIsPersonal

Returns: bool

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

Returns: bool

Environment.BuildNumber

Full Usage: Environment.BuildNumber

Returns: string option

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

Returns: string option

Environment.ChangedFiles

Full Usage: Environment.ChangedFiles

Returns: FileChange list option

Changed files (since previous build) that are included in this build See the documentation for more information

Returns: FileChange list option

Environment.CheckoutDirectory

Full Usage: Environment.CheckoutDirectory

Returns: string option

Get the path to the build checkout directory

Returns: string option

Environment.IsDefaultBranch

Full Usage: Environment.IsDefaultBranch

Returns: bool

Get if the current branch of the main VCS root is the one configured as default

Returns: bool

Environment.ProjectName

Full Usage: Environment.ProjectName

Returns: string option

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

Returns: string option

Environment.RecentlyFailedTests

Full Usage: Environment.RecentlyFailedTests

Returns: string list option

Name of recently failing tests See the documentation for more information

Returns: string list option

Environment.Version

Full Usage: Environment.Version

Returns: string option

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

Returns: string option