Summary
Returns the name of the current branch as reported by the build agent environment.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Agents - Containing Type
- IBuildAgent
Syntax
string GetCurrentBranch(bool usingDynamicRepos)
Parameters
| Name | Type | Description |
|---|---|---|
| usingDynamicRepos | bool |
Return Value
| Type | Description |
|---|---|
| string |