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

Commit 3618aa2

Browse files
+ releaseVersion must never be NULL or empty #13
1 parent 8a8fd3a commit 3618aa2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,11 @@ var defaultActionGitHubReleaseNotes = Task("Action-GitHub-ReleaseNotes")
14171417
releaseVersion = GetVersionForNuGetPackage(id, ciBranch);
14181418
}
14191419

1420+
if(String.IsNullOrEmpty(releaseVersion))
1421+
{
1422+
throw new Exception("releaseVersion is null or empty. Can't get it from 'ci.github.releaseversion' or any of NuSpec files");
1423+
}
1424+
14201425
Information(String.Format("-githubCompanyName:[{0}]",githubCompanyName));
14211426
Information(String.Format("-githubRepositoryName:[{0}]", githubRepositoryName));
14221427

0 commit comments

Comments
 (0)