Skip to content

Commit 7378060

Browse files
committed
NH-3807 - Develop AppVeyor and CircleCI builds.
1 parent 85d457e commit 7378060

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build.cake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Setup(context =>
3838
var isPullRequest = AppVeyor.Environment.PullRequest.IsPullRequest;
3939

4040
CiNonTagBuildVersion(buildNumber, branch, isPullRequest ? AppVeyor.Environment.PullRequest.Number.ToString() : null);
41+
buildVersion = versionSuffix;
4142
}
4243

4344
AppVeyor.UpdateBuildVersion(buildVersion);
@@ -58,6 +59,7 @@ Setup(context =>
5859
var isPullRequest = pullRequestNumber != null;
5960

6061
CiNonTagBuildVersion(buildNumber, branch, isPullRequest ? pullRequestNumber : null);
62+
buildVersion = versionSuffix;
6163
}
6264
}
6365

@@ -224,10 +226,10 @@ void CiNonTagBuildVersion(int buildNumber, string branch, string pullRequestNumb
224226
suffix += "-" + System.Text.RegularExpressions.Regex.Replace(branch, "[^0-9A-Za-z-]+", "-");
225227

226228
// Nuget limits "special version part" to 20 chars. Add one for the hyphen.
227-
if (suffix.Length > 21)
228-
suffix = suffix.Substring(0, 21);
229+
if (suffix.Length > 20)
230+
suffix = suffix.Substring(0, 20);
229231

230-
versionSuffix = suffix + dbgSuffix;
232+
versionSuffix = suffix;
231233
}
232234
}
233235

0 commit comments

Comments
 (0)