Skip to content

Commit 83902cb

Browse files
BehrhorstBehrhorst
Behrhorst
authored and
Behrhorst
committed
made Jenkins.cs use GIT_LOCAL_BRANCH as current branch
1 parent 391f5f3 commit 83902cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionCore/BuildServers/Jenkins.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public override string[] GenerateSetParameterMessage(string name, string value)
3636

3737
public override string GetCurrentBranch(bool usingDynamicRepos)
3838
{
39-
return Environment.GetEnvironmentVariable("GIT_BRANCH");
39+
return Environment.GetEnvironmentVariable("GIT_LOCAL_BRANCH");
4040
}
4141

4242
public override bool PreventFetch()

0 commit comments

Comments
 (0)