TeamFoundation.Environment Type
Exported environment variables during build. See the official documentation for details.
Static members
Static member | Description |
Full Usage:
Environment.BuildId
Returns: string
|
|
|
|
Full Usage:
Environment.BuildSourceBranch
Returns: string
|
|
Full Usage:
Environment.BuildSourceBranchName
Returns: string
|
|
Full Usage:
Environment.BuildSourceVersion
Returns: string
|
|
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.
|
Full Usage:
Environment.SystemPullRequestPullRequestId
Returns: string
|
|
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.
|
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.
|
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.
|