Skip to content

GitVersion Tool: Remap existing verbosity values to valid GitVersion values #3281

@augustoproiete

Description

@augustoproiete

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:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions