Skip to content

[Bug] 5.12.0 does not respect tag in Continuous Deployment mode #3614

@g7ed6e

Description

@g7ed6e

Describe the bug
With 5.12.0, in ContinuousDeployment mode, the tag applied to a commit is not took into account and is overriden.

Expected Behavior

If i tag a commit with 1.1.0-preview1 on a master branch i would expect that NuGetVersion and NuGetVersionV2 to be 1.1.0-preview0001 (this is the behavior of GitVersion 5.10.3)

Actual Behavior

  • If build is queued by selecting the tag, build is tagged 1.1.0-tags-1-1-0-prev-0001
  • If build is queued by selecting the branch master (HEAD is the tagged commit), build is tagged 1.1.0

Possible Fix

GitVersion Documentation is mentionning

Tagging commit
By tagging a commit, GitVersion will use that tag for the version of that commit, then increment the next commit automatically based on the increment rules for that branch (some branches bump patch, some minor).

Steps to Reproduce

Context

Azure DevOps git repo that output nuget packages, GitHub flow. GitVersion used to ship preversion from the master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions