-
-
Notifications
You must be signed in to change notification settings - Fork 764
Closed
Closed
Copy link
Description
Background
The Verbosity argument of GitVersion changed in more recent releases and the existing values in Cake's enumeration no longer match the accepted values by GitVersion.
Proposal
Keep the existing enumeration values as-is in Cake for now and simply remap the existing values to output corresponding valid values for GitVersion, in a way that doesn't break Cake's API - and can potentially be included in an upcoming v1.x release of Cake.
| Cake | Map to | GitVersion |
|---|---|---|
None |
➡️ | Quiet |
Error |
➡️ | Minimal |
Warn |
➡️ | Normal |
Info |
➡️ | Verbose |
Debug |
➡️ | Diagnostic |
Workaround
The current workaround is to use ArgumentCustomization to pass in custom values:
var result = GitVersion(new GitVersionSettings
{
// ...
ArgumentCustomization = args => args
.Append("-verbosity")
.Append("Quiet")
});Related: