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

TeamFoundation.Environment Type

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

Static members

Static member Description

Environment.BuildId

Full Usage: Environment.BuildId

Returns: string

The ID of the record for the completed build.

Returns: string

Environment.BuildReason

Full Usage: Environment.BuildReason

Returns: BuildReason

The event that caused the build to run. See BuildReason type for supported build reasons

Returns: BuildReason

Environment.BuildSourceBranch

Full Usage: Environment.BuildSourceBranch

Returns: string

The branch of the triggering repo the build was queued for

Returns: string

Environment.BuildSourceBranchName

Full Usage: Environment.BuildSourceBranchName

Returns: string

The name of the branch in the triggering repo the build was queued for

Returns: string

Environment.BuildSourceVersion

Full Usage: Environment.BuildSourceVersion

Returns: string

The latest version control change of the triggering repo that is included in this build.

Returns: string

Environment.SystemPullRequestIsFork

Full Usage: Environment.SystemPullRequestIsFork

Returns: bool option

If the pull request is from a fork of the repository, this variable is set to True. Otherwise, it is set to False.

Returns: bool option

Environment.SystemPullRequestPullRequestId

Full Usage: Environment.SystemPullRequestPullRequestId

Returns: string

The ID of the pull request that caused this build. For example: 17

Returns: string

Environment.SystemPullRequestSourceBranch

Full Usage: Environment.SystemPullRequestSourceBranch

Returns: string

The branch that is being reviewed in a pull request. For example: refs/heads/users/raisa/new-feature for Azure Repos.

Returns: string

Environment.SystemPullRequestSourceRepositoryURI

Full Usage: Environment.SystemPullRequestSourceRepositoryURI

Returns: string

The URL to the repo that contains the pull request. For example: https://dev.azure.com/ouraccount/_git/OurProject.

Returns: string

Environment.SystemPullRequestTargetBranch

Full Usage: Environment.SystemPullRequestTargetBranch

Returns: string

The branch that is the target of a pull request. For example: refs/heads/main when your repository is in Azure Repos and main when your repository is in GitHub.

Returns: string