Issues:
1) in the private static string GetVersion(string defaultValue) BuildID var is not defined.
2) If we have non-release branch VERSION parameter will be defined as
VERSION = 0.0.0-develop.
From parameters.cake
if (!BranchName.IsRelease()) {
return $"{version}-{Git.GetTagFromBranchName(BranchName)}.{BuildId}";
}
That is wrong. Version should be in format 0.0.0 for any branch.
3) It causes next issue with AssemblyVersion parameter, cause it defined as
{VERSION}.0 and we will get 0.0.0-develop..0
Build fails in case of non-release branch
Suggestions:
remove from parameters.cake
if (!BranchName.IsRelease()) {
return $"{version}-{Git.GetTagFromBranchName(BranchName)}.{BuildId}";
}
Issues: 1) in the private static string GetVersion(string defaultValue) BuildID var is not defined. 2) If we have non-release branch VERSION parameter will be defined as VERSION = 0.0.0-develop. From parameters.cake
That is wrong. Version should be in format 0.0.0 for any branch.
3) It causes next issue with AssemblyVersion parameter, cause it defined as {VERSION}.0 and we will get 0.0.0-develop..0 Build fails in case of non-release branch
Suggestions: remove from parameters.cake if (!BranchName.IsRelease()) { return $"{version}-{Git.GetTagFromBranchName(BranchName)}.{BuildId}"; }