Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit cc4f46f

Browse files
Merge pull request #20 from SubPointSolutions/dev
SubPointSolutions.CakeBuildTools 0.1.0-beta8, April 2017
2 parents 059f164 + 0b16e85 commit cc4f46f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Build/build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"customNuspecs": [
2323
{
2424
"Id": "SubPointSolutions.CakeBuildTools",
25-
"Version": "0.1.0-beta7",
25+
"Version": "0.1.0-beta8",
2626
"Dependencies": [ ],
2727
"LicenseUrl": "https://github.com/SubPointSolutions/CakeBuildTools/licence",
2828
"ProjectUrl": "https://github.com/SubPointSolutions/CakeBuildTools",

SubPointSolutions.CakeBuildTools/Scripts/SubPointSolutions.CakeBuild.Core.cake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,7 @@ var defaultActionGitHubReleaseNotes = Task("Action-GitHub-ReleaseNotes")
14041404
releaseTitle = System.IO.Path.GetFileNameWithoutExtension(defaultSolutionFilePath);
14051405
}
14061406

1407+
// get releaseVersion from one of the defaultNuspecs?
14071408
if(String.IsNullOrEmpty(releaseVersion) && defaultNuspecs.Count > 0)
14081409
{
14091410
var nuSpec = defaultNuspecs.First();
@@ -1417,9 +1418,13 @@ var defaultActionGitHubReleaseNotes = Task("Action-GitHub-ReleaseNotes")
14171418
releaseVersion = GetVersionForNuGetPackage(id, ciBranch);
14181419
}
14191420

1421+
// fall back on defaultNuspecVersion
1422+
if(String.IsNullOrEmpty(releaseVersion))
1423+
releaseVersion = defaultNuspecVersion;
1424+
14201425
if(String.IsNullOrEmpty(releaseVersion))
14211426
{
1422-
throw new Exception("releaseVersion is null or empty. Can't get it from 'ci.github.releaseversion' or any of NuSpec files");
1427+
throw new Exception("releaseVersion is null or empty. Can't get it from 'ci.github.releaseversion', any of NuSpec files or defaultNuspecVersion");
14231428
}
14241429

14251430
Information(String.Format("-githubCompanyName:[{0}]",githubCompanyName));

0 commit comments

Comments
 (0)