Skip to content

GitVersion doesn't pick up version tags assigned to the latest commit #878

@urig

Description

@urig

I've setup GitVersion as a build step in my TeamCity build configuration.

  1. Given that the most recent version tag on master is v1.2.3
  2. And TeamCity runs a build based on the latest commit on master
  3. When I later tag that same commit with a new version tag: v1.2.4
  4. Then when I manually run the TeamCity build, GitVersion ignores the new version tag and again outputs the previous version.

UPDATE: I've struck out the bits about "skipping fetching" below for the reason that fetching is no longer skipped in my build and yet the symptoms above still occur.
In the build log I see the following message:

INFO [05/10/16 7:52:05:74] Skipping fetching, if GitVersion does not calculate your version as expected you might need to allow fetching or use dynamic repositories

Why is GitVersion skipping fetching? How can I "allow fetching"?

Note:

  • The VCS root is configured to run "automatically on client".
  • The GitVersion build step is based on the GitVersion TeamCity meta-runner.
  • I get the exact same behavior even when I use dynamic repositories. :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions