Skip to content

Commit d853c96

Browse files
committed
Finally fix azure builds
1 parent 499633b commit d853c96

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.cake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ buildType = buildType + buildNumber;
3030

3131
var tagName = EnvironmentVariable("BUILD_SOURCEBRANCH");
3232
if (tagName != null && tagName.StartsWith("refs/tags/v")) {
33-
Console.WriteLine(EnvironmentVariable("BUILD_SOURCEBRANCH"));
34-
Console.WriteLine(EnvironmentVariable("BUILD_SOURCEBRANCHNAME"));
33+
tagName = EnvironmentVariable("BUILD_SOURCEBRANCHNAME");
3534
// On AppVeyor
36-
buildVersion = EnvironmentVariable("BUILD_SOURCEBRANCHNAME").Substring(1);
35+
buildVersion = tagName.Substring(1);
3736
if (!tagName.Contains("-")) {
3837
// Building a full release
3938
buildType = "";

0 commit comments

Comments
 (0)