Skip to content

Commit

Permalink
use new varable name for current branch in gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rose-a authored and arturcic committed Aug 5, 2019
1 parent 877d6ce commit 11ee72a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GitVersionCore/BuildServers/GitLabCi.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace GitVersion
namespace GitVersion
{
using System;
using System.IO;
Expand Down Expand Up @@ -37,7 +37,7 @@ public override string[] GenerateSetParameterMessage(string name, string value)

public override string GetCurrentBranch(bool usingDynamicRepos)
{
return Environment.GetEnvironmentVariable("CI_BUILD_REF_NAME");
return Environment.GetEnvironmentVariable("CI_COMMIT_REF_NAME");
}

public override bool PreventFetch()
Expand All @@ -57,4 +57,4 @@ void WriteVariablesFile(VersionVariables variables)
File.WriteAllLines(_file, BuildOutputFormatter.GenerateBuildLogOutput(this, variables));
}
}
}
}

0 comments on commit 11ee72a

Please sign in to comment.