Skip to content

Commit

Permalink
Finally fix azure builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed May 16, 2019
1 parent 499633b commit d853c96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ buildType = buildType + buildNumber;

var tagName = EnvironmentVariable("BUILD_SOURCEBRANCH");
if (tagName != null && tagName.StartsWith("refs/tags/v")) {
Console.WriteLine(EnvironmentVariable("BUILD_SOURCEBRANCH"));
Console.WriteLine(EnvironmentVariable("BUILD_SOURCEBRANCHNAME"));
tagName = EnvironmentVariable("BUILD_SOURCEBRANCHNAME");
// On AppVeyor
buildVersion = EnvironmentVariable("BUILD_SOURCEBRANCHNAME").Substring(1);
buildVersion = tagName.Substring(1);
if (!tagName.Contains("-")) {
// Building a full release
buildType = "";
Expand Down

0 comments on commit d853c96

Please sign in to comment.