Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 5.5.1 Continue failing to get version when building from tag #2456

Closed
farlop opened this issue Nov 16, 2020 · 8 comments · Fixed by #2577
Closed

[Bug] 5.5.1 Continue failing to get version when building from tag #2456

farlop opened this issue Nov 16, 2020 · 8 comments · Fixed by #2577
Labels

Comments

@farlop
Copy link

farlop commented Nov 16, 2020

Describe the bug
As fix for bug #2074 was released in v5.5.1, I've checked that maybe I'm running in a different scenario:

We are using TrunkBasedDevelopment (TBD) with a configuration file like:

mode: ContinuousDeployment
assembly-informational-format: '{FullSemVer}'
branches:
  develop: 
    increment: Minor
    regex: master    
    tracks-release-branches: true
    prevent-increment-of-merged-branch-version: true
    track-merge-target: false
    tag: 'dev'
  master:
    regex: none
  hotfix:
    regex: ^fix(es)?[/-]
    source-branches: ['develop']
  feature:
    regex: ^features?[/-]
    source-branches: ['develop']
  release:
    regex: ^releases?[/-]    
    source-branches: ['develop']
    increment: Patch
    tag: 'qa'

Expected Behavior

The build for a tagged commit shoud be calculated as 1.0.4

Actual Behavior

The build number is being calculated as 1.1.0-tags-1-0-4.1+15


--------------------------
Installing GitVersion.Tool version 5.x
--------------------------
Herramienta encontrada en caché: GitVersion.Tool 5.5.1 x64
Anteponiendo la variable de entorno de la ruta con el directorio: C:\agents\A\_work\_tool\GitVersion.Tool\5.5.1\x64
[command]C:\agents\A\_work\_tool\GitVersion.Tool\5.5.1\x64\dotnet-gitversion.exe C:/agents/A/_work/56/s /output buildserver /nofetch /config C:\agents\A\_work\56\s\gitversion.yml
INFO [11/16/20 13:17:40:44] Working directory: C:/agents/A/_work/56/s
INFO [11/16/20 13:17:40:50] Branch from build environment: refs/tags/1.0.4
INFO [11/16/20 13:17:40:50] Project root is: C:\agents\A\_work\56\s\
INFO [11/16/20 13:17:40:50] DotGit directory is: C:\agents\A\_work\56\s\.git
INFO [11/16/20 13:17:40:50] Begin: Normalizing git directory for branch 'refs/tags/1.0.4'
  INFO [11/16/20 13:17:40:58] One remote found (origin -> 'https://xxxxxx.xxx.es/tfs/xxxx/xxxx/_git/VC-xxxx').
  INFO [11/16/20 13:17:40:59] Skipping fetching, if GitVersion does not calculate your version as expected you might need to allow fetching or use dynamic repositories
  INFO [11/16/20 13:17:40:60] Updating local branch refs/heads/tags/1.0.4 to match ref refs/tags/1.0.4
  INFO [11/16/20 13:17:40:65] Skipping update of 'refs/remotes/origin/master' as it already matches the remote ref.
  INFO [11/16/20 13:17:40:65] Skipping update of 'refs/remotes/origin/release/1.0' as it already matches the remote ref.
  INFO [11/16/20 13:17:40:65] HEAD points at branch 'refs/heads/tags/1.0.4'.
  INFO [11/16/20 13:17:40:66] End: Normalizing git directory for branch 'refs/tags/1.0.4' (Took: 157.66ms)
  INFO [11/16/20 13:17:40:68] Begin: Loading version variables from disk cache
    INFO [11/16/20 13:17:40:68] Cache file C:\agents\A\_work\56\s\.git\gitversion_cache\0D4992420BC26C0F4E217312F6BEF95837839E5D.yml not found.
  INFO [11/16/20 13:17:40:68] End: Loading version variables from disk cache (Took: 0.68ms)
  INFO [11/16/20 13:17:40:82] Using latest commit on specified branch
  INFO [11/16/20 13:17:40:83] No branch configuration found for branch tags/1.0.4, falling back to default configuration
  INFO [11/16/20 13:17:40:83] Begin: Attempting to inherit branch configuration from parent branch
    INFO [11/16/20 13:17:40:85] HEAD is merge commit, this is likely a pull request using tags/1.0.4 as base
    INFO [11/16/20 13:17:40:86] Begin: Finding branch source of 'tags/1.0.4'
      INFO [11/16/20 13:17:40:88] Begin: Finding merge base between 'tags/1.0.4' and 'fix/closebox-log'.
        INFO [11/16/20 13:17:40:88] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
        INFO [11/16/20 13:17:40:89] Merge base of tags/1.0.4' and 'fix/closebox-log is a1225f6caa7978e06f667af74eb81191b19941d8
      INFO [11/16/20 13:17:40:89] End: Finding merge base between 'tags/1.0.4' and 'fix/closebox-log'. (Took: 13.62ms)
      INFO [11/16/20 13:17:40:89] Begin: Finding merge base between 'tags/1.0.4' and 'fix/pipelines'.
        INFO [11/16/20 13:17:40:89] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
        INFO [11/16/20 13:17:40:89] Merge base of tags/1.0.4' and 'fix/pipelines is a1225f6caa7978e06f667af74eb81191b19941d8
      INFO [11/16/20 13:17:40:89] End: Finding merge base between 'tags/1.0.4' and 'fix/pipelines'. (Took: 0.81ms)
      INFO [11/16/20 13:17:40:89] Begin: Finding merge base between 'tags/1.0.4' and 'fix/reprint'.
        INFO [11/16/20 13:17:40:89] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
        INFO [11/16/20 13:17:40:89] Merge base of tags/1.0.4' and 'fix/reprint is a1225f6caa7978e06f667af74eb81191b19941d8
      INFO [11/16/20 13:17:40:89] End: Finding merge base between 'tags/1.0.4' and 'fix/reprint'. (Took: 1.23ms)
      INFO [11/16/20 13:17:40:89] Begin: Finding merge base between 'tags/1.0.4' and 'fix/reprint-on-release-1.0'.
        INFO [11/16/20 13:17:40:89] Found merge base of 4f69160f43a30dfe31e0ad28b1a33b0c68cc412d
        INFO [11/16/20 13:17:40:89] Merge base of tags/1.0.4' and 'fix/reprint-on-release-1.0 is 4f69160f43a30dfe31e0ad28b1a33b0c68cc412d
      INFO [11/16/20 13:17:40:89] End: Finding merge base between 'tags/1.0.4' and 'fix/reprint-on-release-1.0'. (Took: 0.37ms)
      INFO [11/16/20 13:17:40:89] Begin: Finding merge base between 'tags/1.0.4' and 'master'.
        INFO [11/16/20 13:17:40:90] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
        INFO [11/16/20 13:17:40:90] Merge base of tags/1.0.4' and 'master is a1225f6caa7978e06f667af74eb81191b19941d8
      INFO [11/16/20 13:17:40:90] End: Finding merge base between 'tags/1.0.4' and 'master'. (Took: 1.44ms)
      INFO [11/16/20 13:17:40:90] Begin: Finding merge base between 'tags/1.0.4' and 'release/1.0'.
        INFO [11/16/20 13:17:40:90] Found merge base of 67cbdaa641189c1a1498806696aeb8e64ec96d4e
        INFO [11/16/20 13:17:40:90] Merge base of tags/1.0.4' and 'release/1.0 is 67cbdaa641189c1a1498806696aeb8e64ec96d4e
      INFO [11/16/20 13:17:40:90] End: Finding merge base between 'tags/1.0.4' and 'release/1.0'. (Took: 0.31ms)
      INFO [11/16/20 13:17:40:90] Begin: Finding merge base between 'tags/1.0.4' and 'origin/master'.
        INFO [11/16/20 13:17:40:90] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
        INFO [11/16/20 13:17:40:90] Merge base of tags/1.0.4' and 'origin/master is a1225f6caa7978e06f667af74eb81191b19941d8
      INFO [11/16/20 13:17:40:90] End: Finding merge base between 'tags/1.0.4' and 'origin/master'. (Took: 2.82ms)
      INFO [11/16/20 13:17:40:90] Begin: Finding merge base between 'tags/1.0.4' and 'origin/release/1.0'.
        INFO [11/16/20 13:17:40:90] Found merge base of 67cbdaa641189c1a1498806696aeb8e64ec96d4e
        INFO [11/16/20 13:17:40:90] Merge base of tags/1.0.4' and 'origin/release/1.0 is 67cbdaa641189c1a1498806696aeb8e64ec96d4e
      INFO [11/16/20 13:17:40:90] End: Finding merge base between 'tags/1.0.4' and 'origin/release/1.0'. (Took: 0.71ms)
      INFO [11/16/20 13:17:40:92] Multiple source branches have been found, picking the first one (release/1.0).
This may result in incorrect commit counting.
Options were:
release/1.0, origin/release/1.0, fix/reprint-on-release-1.0, fix/closebox-log, fix/pipelines, fix/reprint, master, origin/master
    INFO [11/16/20 13:17:40:92] End: Finding branch source of 'tags/1.0.4' (Took: 61.51ms)
    INFO [11/16/20 13:17:40:93] Begin: Getting branches containing the commit '67cbdaa641189c1a1498806696aeb8e64ec96d4e'.
      INFO [11/16/20 13:17:40:93] Trying to find direct branches.
      INFO [11/16/20 13:17:40:93] No direct branches found, searching through all branches.
      INFO [11/16/20 13:17:40:93] Searching for commits reachable from 'fix/closebox-log'.
      INFO [11/16/20 13:17:40:94] The branch 'fix/closebox-log' has no matching commits.
      INFO [11/16/20 13:17:40:94] Searching for commits reachable from 'fix/pipelines'.
      INFO [11/16/20 13:17:40:94] The branch 'fix/pipelines' has no matching commits.
      INFO [11/16/20 13:17:40:94] Searching for commits reachable from 'fix/reprint'.
      INFO [11/16/20 13:17:40:94] The branch 'fix/reprint' has no matching commits.
      INFO [11/16/20 13:17:40:94] Searching for commits reachable from 'fix/reprint-on-release-1.0'.
      INFO [11/16/20 13:17:40:94] The branch 'fix/reprint-on-release-1.0' has no matching commits.
      INFO [11/16/20 13:17:40:94] Searching for commits reachable from 'master'.
      INFO [11/16/20 13:17:40:94] The branch 'master' has no matching commits.
      INFO [11/16/20 13:17:40:94] Searching for commits reachable from 'release/1.0'.
      INFO [11/16/20 13:17:40:94] The branch 'release/1.0' has a matching commit.
      INFO [11/16/20 13:17:40:94] Searching for commits reachable from 'origin/master'.
      INFO [11/16/20 13:17:40:95] The branch 'origin/master' has no matching commits.
      INFO [11/16/20 13:17:40:95] Searching for commits reachable from 'origin/release/1.0'.
      INFO [11/16/20 13:17:40:95] The branch 'origin/release/1.0' has a matching commit.
    INFO [11/16/20 13:17:40:95] End: Getting branches containing the commit '67cbdaa641189c1a1498806696aeb8e64ec96d4e'. (Took: 17.18ms)
    INFO [11/16/20 13:17:40:95] Begin: Getting branches containing the commit '67cbdaa641189c1a1498806696aeb8e64ec96d4e'.
      INFO [11/16/20 13:17:40:95] Trying to find direct branches.
      INFO [11/16/20 13:17:40:95] No direct branches found, searching through all branches.
      INFO [11/16/20 13:17:40:95] Searching for commits reachable from 'fix/closebox-log'.
      INFO [11/16/20 13:17:40:95] The branch 'fix/closebox-log' has no matching commits.
      INFO [11/16/20 13:17:40:95] Searching for commits reachable from 'fix/pipelines'.
      INFO [11/16/20 13:17:40:95] The branch 'fix/pipelines' has no matching commits.
      INFO [11/16/20 13:17:40:95] Searching for commits reachable from 'fix/reprint'.
      INFO [11/16/20 13:17:40:96] The branch 'fix/reprint' has no matching commits.
      INFO [11/16/20 13:17:40:96] Searching for commits reachable from 'fix/reprint-on-release-1.0'.
      INFO [11/16/20 13:17:40:96] The branch 'fix/reprint-on-release-1.0' has no matching commits.
      INFO [11/16/20 13:17:40:96] Searching for commits reachable from 'master'.
      INFO [11/16/20 13:17:40:96] The branch 'master' has no matching commits.
      INFO [11/16/20 13:17:40:96] Searching for commits reachable from 'release/1.0'.
      INFO [11/16/20 13:17:40:96] The branch 'release/1.0' has a matching commit.
      INFO [11/16/20 13:17:40:96] Searching for commits reachable from 'origin/master'.
      INFO [11/16/20 13:17:40:97] The branch 'origin/master' has no matching commits.
      INFO [11/16/20 13:17:40:97] Searching for commits reachable from 'origin/release/1.0'.
      INFO [11/16/20 13:17:40:97] The branch 'origin/release/1.0' has a matching commit.
    INFO [11/16/20 13:17:40:97] End: Getting branches containing the commit '67cbdaa641189c1a1498806696aeb8e64ec96d4e'. (Took: 20.08ms)
    INFO [11/16/20 13:17:40:97] Found possible parent branches: 
    WARN [11/16/20 13:17:40:98] Failed to inherit Increment branch configuration, no branches found.
Falling back to master branch config
  INFO [11/16/20 13:17:40:98] End: Attempting to inherit branch configuration from parent branch (Took: 144.11ms)
  INFO [11/16/20 13:17:41:07] Running against branch: tags/1.0.4 (67cbdaa641189c1a1498806696aeb8e64ec96d4e)
  INFO [11/16/20 13:17:41:08] Current commit is tagged with version 1.0.4, version calculation is for metadata only.
  INFO [11/16/20 13:17:41:08] 0 commits found between 67cbdaa641189c1a1498806696aeb8e64ec96d4e and 67cbdaa641189c1a1498806696aeb8e64ec96d4e
  INFO [11/16/20 13:17:41:08] Begin: Calculating base versions
    INFO [11/16/20 13:17:41:29] Git tag '1.0.4': 1.0.4 with commit count source 67cbdaa641189c1a1498806696aeb8e64ec96d4e
    INFO [11/16/20 13:17:41:31] Begin: Finding merge base between 'release/1.0' and 'tags/1.0.4'.
      INFO [11/16/20 13:17:41:31] Found merge base of 67cbdaa641189c1a1498806696aeb8e64ec96d4e
      INFO [11/16/20 13:17:41:31] Merge base of release/1.0' and 'tags/1.0.4 is 67cbdaa641189c1a1498806696aeb8e64ec96d4e
    INFO [11/16/20 13:17:41:31] End: Finding merge base between 'release/1.0' and 'tags/1.0.4'. (Took: 1.69ms)
    INFO [11/16/20 13:17:41:33] Git tag '1.0.3': 1.0.3 with commit count source 689a7296ab4777dffcdd720b284fa80c9f4dddf9
    INFO [11/16/20 13:17:41:34] Found multiple base versions which will produce the same SemVer (1.1.0), taking oldest source for commit counting (Git tag '1.0.3')
    INFO [11/16/20 13:17:41:34] Base version used: Git tag '1.0.3': 1.0.3 with commit count source 689a7296ab4777dffcdd720b284fa80c9f4dddf9
  INFO [11/16/20 13:17:41:34] End: Calculating base versions (Took: 258.00ms)
  INFO [11/16/20 13:17:41:35] 15 commits found between 689a7296ab4777dffcdd720b284fa80c9f4dddf9 and 67cbdaa641189c1a1498806696aeb8e64ec96d4e
  INFO [11/16/20 13:17:41:35] Using branch name to calculate version tag
  INFO [11/16/20 13:17:41:35] Begin: Getting version tags from branch 'refs/heads/tags/1.0.4'.
  INFO [11/16/20 13:17:41:36] End: Getting version tags from branch 'refs/heads/tags/1.0.4'. (Took: 12.95ms)
  INFO [11/16/20 13:17:41:45] Begin: Creating dictionary
  INFO [11/16/20 13:17:41:46] End: Creating dictionary (Took: 11.68ms)
  INFO [11/16/20 13:17:41:47] Begin: Storing version variables to cache file C:\agents\A\_work\56\s\.git\gitversion_cache\0D4992420BC26C0F4E217312F6BEF95837839E5D.yml
  INFO [11/16/20 13:17:41:56] End: Storing version variables to cache file C:\agents\A\_work\56\s\.git\gitversion_cache\0D4992420BC26C0F4E217312F6BEF95837839E5D.yml (Took: 86.74ms)
Executing GenerateSetVersionMessage for 'AzurePipelines'.
Executing GenerateBuildLogOutput for 'AzurePipelines'.
  INFO [11/16/20 13:17:41:60] Done writing 
##[section]Async Command Start: Actualizar número de compilación
Actualizar número de compilación 1.1.0-tags-1-0-4.1+15 para la compilación 7035
##[section]Async Command End: Actualizar número de compilación
##[section]Finalizando: Use GitVersion

As GitVersion creates a new branch named 'tags/1.0.4' it fails calculating the version.

Steps to Reproduce

When we add a new fix we proceed as follow:

  • Create a fix branch solving the bug
  • Create a PR to master
  • After PR is completed, cherry pick that PR to release/1.0 (for example) branch
  • Add a new tag on release/1.0 named 1.0.4 (for example)

You can reproduce it with dotnet gitversion tool:

  • git pull
  • git checkout release/1.0
  • dotnet gitversion >>> version 1.0.4
  • git checkout -b tags/1.0.4
  • dotnet gitversion >>> version 1.1.0-tags-1-0-4.1

Your Environment

We are using Azure DevOps Server 2019

  • Version Used: 5.5.1
  • Operating System and version (Windows 10, Ubuntu 18.04): Windows
  • Link to your project:
  • Link to your CI build (if appropriate):
@farlop farlop added the bug label Nov 16, 2020
@megakid
Copy link

megakid commented Nov 17, 2020

I'm also getting this. Downgrading until this is fixed.

@farlop
Copy link
Author

farlop commented Nov 18, 2020

I've managed to get a workaround for this problem modifying the regex used for release configuration:

  release:
    regex: ^((\brelease\bs?)|(\btags\b))[/-]
    source-branches: ['develop']
    increment: Patch
    tag: 'qa'

Now GitVersion is calculating version accordly:

##[section]Iniciando: Use GitVersion
==============================================================================
Task         : GitVersion Task
Description  : Easy Semantic Versioning (http://semver.org) for projects using Git
Version      : 5.1.2
Author       : GitVersion Contributors
Help         : See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help
==============================================================================

--------------------------
Installing GitVersion.Tool version 5.x
--------------------------
Herramienta encontrada en caché: GitVersion.Tool 5.5.1 x64
Anteponiendo la variable de entorno de la ruta con el directorio: C:\agents\A\_work\_tool\GitVersion.Tool\5.5.1\x64
[command]C:\agents\A\_work\_tool\GitVersion.Tool\5.5.1\x64\dotnet-gitversion.exe C:/agents/A/_work/56/s /output buildserver /nofetch /config C:\agents\A\_work\56\s\gitversion.yml
INFO [11/18/20 11:08:18:64] Working directory: C:/agents/A/_work/56/s
INFO [11/18/20 11:08:18:67] Branch from build environment: refs/tags/1.0.5
INFO [11/18/20 11:08:18:67] Project root is: C:\agents\A\_work\56\s\
INFO [11/18/20 11:08:18:67] DotGit directory is: C:\agents\A\_work\56\s\.git
INFO [11/18/20 11:08:18:67] Begin: Normalizing git directory for branch 'refs/tags/1.0.5'
  INFO [11/18/20 11:08:18:71] One remote found (origin -> 'https://xxxxx.xxx.xx/tfs/xxx/xxx/_git/xxxxxx').
  INFO [11/18/20 11:08:18:72] Skipping fetching, if GitVersion does not calculate your version as expected you might need to allow fetching or use dynamic repositories
  INFO [11/18/20 11:08:18:73] Creating local branch refs/heads/tags/1.0.5 pointing at 038ac60413d68c1f56d8e3febcab3fa79b9ecf01
  INFO [11/18/20 11:08:18:76] Skipping update of 'refs/remotes/origin/master' as it already matches the remote ref.
  INFO [11/18/20 11:08:18:76] Updating local ref 'refs/heads/release/1.0' to point at 038ac60413d68c1f56d8e3febcab3fa79b9ecf01.
  INFO [11/18/20 11:08:18:77] HEAD points at branch 'refs/heads/tags/1.0.5'.
  INFO [11/18/20 11:08:18:77] End: Normalizing git directory for branch 'refs/tags/1.0.5' (Took: 100.33ms)
  INFO [11/18/20 11:08:18:79] Begin: Loading version variables from disk cache
    INFO [11/18/20 11:08:18:79] Cache file C:\agents\A\_work\56\s\.git\gitversion_cache\69EF28973D95388420815DD29A6ED42EEE9B172B.yml not found.
  INFO [11/18/20 11:08:18:79] End: Loading version variables from disk cache (Took: 0.56ms)
  INFO [11/18/20 11:08:18:92] Using latest commit on specified branch
  INFO [11/18/20 11:08:18:98] Running against branch: tags/1.0.5 (038ac60413d68c1f56d8e3febcab3fa79b9ecf01)
  INFO [11/18/20 11:08:18:98] Current commit is tagged with version 1.0.5, version calculation is for metadata only.
  INFO [11/18/20 11:08:18:99] 0 commits found between 038ac60413d68c1f56d8e3febcab3fa79b9ecf01 and 038ac60413d68c1f56d8e3febcab3fa79b9ecf01
  INFO [11/18/20 11:08:19:00] Begin: Calculating base versions
    INFO [11/18/20 11:08:19:09] Git tag '1.0.5': 1.0.5 with commit count source 038ac60413d68c1f56d8e3febcab3fa79b9ecf01
    INFO [11/18/20 11:08:19:10] Begin: Finding branch source of 'tags/1.0.5'
      INFO [11/18/20 11:08:19:11] Begin: Finding merge base between 'tags/1.0.5' and 'master'.
        INFO [11/18/20 11:08:19:12] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
        INFO [11/18/20 11:08:19:12] Merge base of tags/1.0.5' and 'master is a1225f6caa7978e06f667af74eb81191b19941d8
      INFO [11/18/20 11:08:19:12] End: Finding merge base between 'tags/1.0.5' and 'master'. (Took: 7.24ms)
      INFO [11/18/20 11:08:19:12] Begin: Finding merge base between 'tags/1.0.5' and 'origin/master'.
        INFO [11/18/20 11:08:19:12] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
        INFO [11/18/20 11:08:19:13] Merge base of tags/1.0.5' and 'origin/master is a1225f6caa7978e06f667af74eb81191b19941d8
      INFO [11/18/20 11:08:19:13] End: Finding merge base between 'tags/1.0.5' and 'origin/master'. (Took: 3.10ms)
      INFO [11/18/20 11:08:19:13] Multiple source branches have been found, picking the first one (master).
This may result in incorrect commit counting.
Options were:
master, origin/master
    INFO [11/18/20 11:08:19:13] End: Finding branch source of 'tags/1.0.5' (Took: 34.62ms)
    INFO [11/18/20 11:08:19:13] Version in branch name: 1.0.5 with commit count source a1225f6caa7978e06f667af74eb81191b19941d8
    INFO [11/18/20 11:08:19:14] Found multiple base versions which will produce the same SemVer (1.0.5), taking oldest source for commit counting (Version in branch name)
    INFO [11/18/20 11:08:19:14] Base version used: Version in branch name: 1.0.5 with commit count source a1225f6caa7978e06f667af74eb81191b19941d8
  INFO [11/18/20 11:08:19:14] End: Calculating base versions (Took: 146.40ms)
  INFO [11/18/20 11:08:19:14] Skipping version increment
  INFO [11/18/20 11:08:19:14] 18 commits found between a1225f6caa7978e06f667af74eb81191b19941d8 and 038ac60413d68c1f56d8e3febcab3fa79b9ecf01
  INFO [11/18/20 11:08:19:14] Begin: Getting version tags from branch 'refs/heads/tags/1.0.5'.
  INFO [11/18/20 11:08:19:15] End: Getting version tags from branch 'refs/heads/tags/1.0.5'. (Took: 5.52ms)
  INFO [11/18/20 11:08:19:19] Begin: Creating dictionary
  INFO [11/18/20 11:08:19:20] End: Creating dictionary (Took: 5.95ms)
  INFO [11/18/20 11:08:19:20] Begin: Storing version variables to cache file C:\agents\A\_work\56\s\.git\gitversion_cache\69EF28973D95388420815DD29A6ED42EEE9B172B.yml
  INFO [11/18/20 11:08:19:24] End: Storing version variables to cache file C:\agents\A\_work\56\s\.git\gitversion_cache\69EF28973D95388420815DD29A6ED42EEE9B172B.yml (Took: 40.85ms)
Executing GenerateSetVersionMessage for 'AzurePipelines'.
Executing GenerateBuildLogOutput for 'AzurePipelines'.
  INFO [11/18/20 11:08:19:27] Done writing 
##[section]Async Command Start: Actualizar número de compilación
Actualizar número de compilación 1.0.5 para la compilación 7125
##[section]Async Command End: Actualizar número de compilación
##[section]Finalizando: Use GitVersion

@asbjornu
Copy link
Member

@megakid, can you please try to adjust the regex of release and see if you get the same result as @farlop?

@brechtvhb
Copy link

I had this problem on 5.3, then reverted to 5.1.2. Now I migrated to 5.6.0 and it seems to be solved for us.

This is our config:

mode: ContinuousDeployment
continuous-delivery-fallback-tag: ""
next-version: 1.0
branches:
  master:
    tag: "dev"
    prevent-increment-of-merged-branch-version: false
    tracks-release-branches: true
    increment: "Minor"
  release:
    tag: "rc"
    source-branches: ["master"]
    is-release-branch: true
    increment: "Patch"
  feature: 
    tag: alpha-{BranchName}
    source-branches: ["master"]
  hotfix:
    tag: hotfix-{BranchName}
    source-branches: ["master"]
ignore:
  sha: []

@arturcic
Copy link
Member

@brechtvhb thank you for the feedback.

@farlop any feedback from you?

@farlop
Copy link
Author

farlop commented Dec 22, 2020

Please find below a re-run of a build from a tag using GitVersion 5.6.0. It seems it's still not able to find out that I'm building from a tag in Azure DevOps server. (build number 1.1.0-tags-1-0-4.1+15 instead of 1.0.4)

2020-12-22T18:51:00.0216236Z ##[section]Iniciando: Use GitVersion
2020-12-22T18:51:00.0402175Z ==============================================================================
2020-12-22T18:51:00.0403008Z Task         : GitVersion Task
2020-12-22T18:51:00.0403772Z Description  : Easy Semantic Versioning (http://semver.org) for projects using Git
2020-12-22T18:51:00.0404498Z Version      : 5.1.2
2020-12-22T18:51:00.0405037Z Author       : GitVersion Contributors
2020-12-22T18:51:00.0405870Z Help         : See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help
2020-12-22T18:51:00.0406796Z ==============================================================================
2020-12-22T18:51:00.6681457Z 
2020-12-22T18:51:00.6683879Z --------------------------
2020-12-22T18:51:00.6684691Z Installing GitVersion.Tool version 5.x
2020-12-22T18:51:00.6685246Z --------------------------
2020-12-22T18:51:00.6874701Z Herramienta encontrada en caché: GitVersion.Tool 5.6.0 x64
2020-12-22T18:51:00.6886657Z Anteponiendo la variable de entorno de la ruta con el directorio: C:\agents\A\_work\_tool\GitVersion.Tool\5.6.0\x64
2020-12-22T18:51:00.7002071Z [command]C:\agents\A\_work\_tool\GitVersion.Tool\5.6.0\x64\dotnet-gitversion.exe C:/agents/A/_work/56/s /output buildserver /nofetch /config C:\agents\A\_work\56\s\gitversion.yml
2020-12-22T18:51:02.5437701Z INFO [12/22/20 19:51:02:52] Working directory: C:/agents/A/_work/56/s
2020-12-22T18:51:02.6467937Z INFO [12/22/20 19:51:02:64] Branch from build environment: refs/tags/1.0.4
2020-12-22T18:51:02.6476241Z INFO [12/22/20 19:51:02:64] Project root is: C:\agents\A\_work\56\s\
2020-12-22T18:51:02.6481888Z INFO [12/22/20 19:51:02:64] DotGit directory is: C:\agents\A\_work\56\s\.git
2020-12-22T18:51:02.6487616Z INFO [12/22/20 19:51:02:64] Begin: Normalizing git directory for branch 'refs/tags/1.0.4'
2020-12-22T18:51:02.7314591Z   INFO [12/22/20 19:51:02:73] One remote found (origin -> ''https://xxxxxx.xxx.es/tfs/xxxx/xxxx/_git/VC-xxxx'').
2020-12-22T18:51:02.7372510Z   INFO [12/22/20 19:51:02:73] Skipping fetching, if GitVersion does not calculate your version as expected you might need to allow fetching or use dynamic repositories
2020-12-22T18:51:02.7562216Z   INFO [12/22/20 19:51:02:75] Updating local branch refs/heads/tags/1.0.4 to match ref refs/tags/1.0.4
2020-12-22T18:51:02.8543059Z   INFO [12/22/20 19:51:02:85] Skipping update of 'refs/remotes/origin/master' as it already matches the remote ref.
2020-12-22T18:51:02.8622878Z   INFO [12/22/20 19:51:02:86] Skipping update of 'refs/remotes/origin/release/1.0' as it already matches the remote ref.
2020-12-22T18:51:02.8641955Z   INFO [12/22/20 19:51:02:86] HEAD points at branch 'refs/heads/tags/1.0.4'.
2020-12-22T18:51:02.8663463Z   INFO [12/22/20 19:51:02:86] End: Normalizing git directory for branch 'refs/tags/1.0.4' (Took: 217.41ms)
2020-12-22T18:51:02.9750165Z   INFO [12/22/20 19:51:02:97] Begin: Loading version variables from disk cache
2020-12-22T18:51:02.9903182Z     INFO [12/22/20 19:51:02:98] Cache file C:\agents\A\_work\56\s\.git\gitversion_cache\E9DCBA6E5FADFEABA4BE279D8FFFCEA91E4FA85D.yml not found.
2020-12-22T18:51:02.9904950Z   INFO [12/22/20 19:51:02:98] End: Loading version variables from disk cache (Took: 15.87ms)
2020-12-22T18:51:03.4172048Z   INFO [12/22/20 19:51:03:41] Using latest commit on specified branch
2020-12-22T18:51:03.4304862Z   INFO [12/22/20 19:51:03:42] No branch configuration found for branch tags/1.0.4, falling back to default configuration
2020-12-22T18:51:03.4389376Z   INFO [12/22/20 19:51:03:43] Begin: Attempting to inherit branch configuration from parent branch
2020-12-22T18:51:03.4670507Z     INFO [12/22/20 19:51:03:46] HEAD is merge commit, this is likely a pull request using tags/1.0.4 as base
2020-12-22T18:51:03.4884643Z     INFO [12/22/20 19:51:03:48] Begin: Finding branch source of 'tags/1.0.4'
2020-12-22T18:51:03.5198077Z       INFO [12/22/20 19:51:03:51] Begin: Finding merge base between 'tags/1.0.4' and 'fix/closebox-log'.
2020-12-22T18:51:03.5372055Z         INFO [12/22/20 19:51:03:53] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5543855Z         INFO [12/22/20 19:51:03:55] Merge base of tags/1.0.4' and 'fix/closebox-log is a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5546721Z       INFO [12/22/20 19:51:03:55] End: Finding merge base between 'tags/1.0.4' and 'fix/closebox-log'. (Took: 35.00ms)
2020-12-22T18:51:03.5556302Z       INFO [12/22/20 19:51:03:55] Begin: Finding merge base between 'tags/1.0.4' and 'fix/gitversion-assemblyinfo'.
2020-12-22T18:51:03.5569014Z         INFO [12/22/20 19:51:03:55] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5584794Z         INFO [12/22/20 19:51:03:55] Merge base of tags/1.0.4' and 'fix/gitversion-assemblyinfo is a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5599095Z       INFO [12/22/20 19:51:03:55] End: Finding merge base between 'tags/1.0.4' and 'fix/gitversion-assemblyinfo'. (Took: 3.00ms)
2020-12-22T18:51:03.5600629Z       INFO [12/22/20 19:51:03:55] Begin: Finding merge base between 'tags/1.0.4' and 'fix/pipelines'.
2020-12-22T18:51:03.5601978Z         INFO [12/22/20 19:51:03:55] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5603196Z         INFO [12/22/20 19:51:03:55] Merge base of tags/1.0.4' and 'fix/pipelines is a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5604533Z       INFO [12/22/20 19:51:03:55] End: Finding merge base between 'tags/1.0.4' and 'fix/pipelines'. (Took: 0.88ms)
2020-12-22T18:51:03.5606669Z       INFO [12/22/20 19:51:03:55] Begin: Finding merge base between 'tags/1.0.4' and 'fix/reprint'.
2020-12-22T18:51:03.5608083Z         INFO [12/22/20 19:51:03:55] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5615208Z         INFO [12/22/20 19:51:03:56] Merge base of tags/1.0.4' and 'fix/reprint is a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5616673Z       INFO [12/22/20 19:51:03:56] End: Finding merge base between 'tags/1.0.4' and 'fix/reprint'. (Took: 1.50ms)
2020-12-22T18:51:03.5618018Z       INFO [12/22/20 19:51:03:56] Begin: Finding merge base between 'tags/1.0.4' and 'fix/reprint-on-release-1.0'.
2020-12-22T18:51:03.5619159Z         INFO [12/22/20 19:51:03:56] Found merge base of 4f69160f43a30dfe31e0ad28b1a33b0c68cc412d
2020-12-22T18:51:03.5620440Z         INFO [12/22/20 19:51:03:56] Merge base of tags/1.0.4' and 'fix/reprint-on-release-1.0 is 4f69160f43a30dfe31e0ad28b1a33b0c68cc412d
2020-12-22T18:51:03.5621914Z       INFO [12/22/20 19:51:03:56] End: Finding merge base between 'tags/1.0.4' and 'fix/reprint-on-release-1.0'. (Took: 0.48ms)
2020-12-22T18:51:03.5623140Z       INFO [12/22/20 19:51:03:56] Begin: Finding merge base between 'tags/1.0.4' and 'master'.
2020-12-22T18:51:03.5628962Z         INFO [12/22/20 19:51:03:56] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5651359Z         INFO [12/22/20 19:51:03:56] Merge base of tags/1.0.4' and 'master is a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5654024Z       INFO [12/22/20 19:51:03:56] End: Finding merge base between 'tags/1.0.4' and 'master'. (Took: 2.97ms)
2020-12-22T18:51:03.5659146Z       INFO [12/22/20 19:51:03:56] Begin: Finding merge base between 'tags/1.0.4' and 'release/1.0'.
2020-12-22T18:51:03.5661329Z         INFO [12/22/20 19:51:03:56] Found merge base of 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.5663512Z         INFO [12/22/20 19:51:03:56] Merge base of tags/1.0.4' and 'release/1.0 is 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.5666438Z       INFO [12/22/20 19:51:03:56] End: Finding merge base between 'tags/1.0.4' and 'release/1.0'. (Took: 1.17ms)
2020-12-22T18:51:03.5667719Z       INFO [12/22/20 19:51:03:56] Begin: Finding merge base between 'tags/1.0.4' and 'origin/master'.
2020-12-22T18:51:03.5675429Z         INFO [12/22/20 19:51:03:56] Found merge base of a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5695173Z         INFO [12/22/20 19:51:03:56] Merge base of tags/1.0.4' and 'origin/master is a1225f6caa7978e06f667af74eb81191b19941d8
2020-12-22T18:51:03.5697971Z       INFO [12/22/20 19:51:03:56] End: Finding merge base between 'tags/1.0.4' and 'origin/master'. (Took: 2.70ms)
2020-12-22T18:51:03.5700030Z       INFO [12/22/20 19:51:03:56] Begin: Finding merge base between 'tags/1.0.4' and 'origin/release/1.0'.
2020-12-22T18:51:03.5701192Z         INFO [12/22/20 19:51:03:56] Found merge base of 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.5706787Z         INFO [12/22/20 19:51:03:57] Merge base of tags/1.0.4' and 'origin/release/1.0 is 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.5708218Z       INFO [12/22/20 19:51:03:57] End: Finding merge base between 'tags/1.0.4' and 'origin/release/1.0'. (Took: 1.23ms)
2020-12-22T18:51:03.5885084Z       INFO [12/22/20 19:51:03:58] Multiple source branches have been found, picking the first one (release/1.0).
2020-12-22T18:51:03.5886225Z This may result in incorrect commit counting.
2020-12-22T18:51:03.5886724Z Options were:
2020-12-22T18:51:03.5887835Z release/1.0, origin/release/1.0, fix/reprint-on-release-1.0, fix/closebox-log, fix/gitversion-assemblyinfo, fix/pipelines, fix/reprint, master, origin/master
2020-12-22T18:51:03.5890646Z     INFO [12/22/20 19:51:03:58] End: Finding branch source of 'tags/1.0.4' (Took: 100.53ms)
2020-12-22T18:51:03.5963634Z     INFO [12/22/20 19:51:03:59] Begin: Getting branches containing the commit '67cbdaa641189c1a1498806696aeb8e64ec96d4e'.
2020-12-22T18:51:03.5964835Z       INFO [12/22/20 19:51:03:59] Trying to find direct branches.
2020-12-22T18:51:03.5965847Z       INFO [12/22/20 19:51:03:59] No direct branches found, searching through all branches.
2020-12-22T18:51:03.5969892Z       INFO [12/22/20 19:51:03:59] Searching for commits reachable from 'fix/closebox-log'.
2020-12-22T18:51:03.6004368Z       INFO [12/22/20 19:51:03:60] The branch 'fix/closebox-log' has no matching commits.
2020-12-22T18:51:03.6011297Z       INFO [12/22/20 19:51:03:60] Searching for commits reachable from 'fix/gitversion-assemblyinfo'.
2020-12-22T18:51:03.6036029Z       INFO [12/22/20 19:51:03:60] The branch 'fix/gitversion-assemblyinfo' has no matching commits.
2020-12-22T18:51:03.6083778Z       INFO [12/22/20 19:51:03:60] Searching for commits reachable from 'fix/pipelines'.
2020-12-22T18:51:03.6084880Z       INFO [12/22/20 19:51:03:60] The branch 'fix/pipelines' has no matching commits.
2020-12-22T18:51:03.6087199Z       INFO [12/22/20 19:51:03:60] Searching for commits reachable from 'fix/reprint'.
2020-12-22T18:51:03.6088318Z       INFO [12/22/20 19:51:03:60] The branch 'fix/reprint' has no matching commits.
2020-12-22T18:51:03.6089373Z       INFO [12/22/20 19:51:03:60] Searching for commits reachable from 'fix/reprint-on-release-1.0'.
2020-12-22T18:51:03.6090586Z       INFO [12/22/20 19:51:03:60] The branch 'fix/reprint-on-release-1.0' has no matching commits.
2020-12-22T18:51:03.6091659Z       INFO [12/22/20 19:51:03:60] Searching for commits reachable from 'master'.
2020-12-22T18:51:03.6095076Z       INFO [12/22/20 19:51:03:60] The branch 'master' has no matching commits.
2020-12-22T18:51:03.6096456Z       INFO [12/22/20 19:51:03:60] Searching for commits reachable from 'release/1.0'.
2020-12-22T18:51:03.6121005Z       INFO [12/22/20 19:51:03:61] The branch 'release/1.0' has a matching commit.
2020-12-22T18:51:03.6122162Z       INFO [12/22/20 19:51:03:61] Searching for commits reachable from 'origin/master'.
2020-12-22T18:51:03.6139462Z       INFO [12/22/20 19:51:03:61] The branch 'origin/master' has no matching commits.
2020-12-22T18:51:03.6140671Z       INFO [12/22/20 19:51:03:61] Searching for commits reachable from 'origin/release/1.0'.
2020-12-22T18:51:03.6155216Z       INFO [12/22/20 19:51:03:61] The branch 'origin/release/1.0' has a matching commit.
2020-12-22T18:51:03.6156733Z     INFO [12/22/20 19:51:03:61] End: Getting branches containing the commit '67cbdaa641189c1a1498806696aeb8e64ec96d4e'. (Took: 19.48ms)
2020-12-22T18:51:03.6161149Z     INFO [12/22/20 19:51:03:61] Begin: Getting branches containing the commit '67cbdaa641189c1a1498806696aeb8e64ec96d4e'.
2020-12-22T18:51:03.6162260Z       INFO [12/22/20 19:51:03:61] Trying to find direct branches.
2020-12-22T18:51:03.6163396Z       INFO [12/22/20 19:51:03:61] No direct branches found, searching through all branches.
2020-12-22T18:51:03.6164421Z       INFO [12/22/20 19:51:03:61] Searching for commits reachable from 'fix/closebox-log'.
2020-12-22T18:51:03.6177595Z       INFO [12/22/20 19:51:03:61] The branch 'fix/closebox-log' has no matching commits.
2020-12-22T18:51:03.6178979Z       INFO [12/22/20 19:51:03:61] Searching for commits reachable from 'fix/gitversion-assemblyinfo'.
2020-12-22T18:51:03.6199393Z       INFO [12/22/20 19:51:03:61] The branch 'fix/gitversion-assemblyinfo' has no matching commits.
2020-12-22T18:51:03.6200572Z       INFO [12/22/20 19:51:03:61] Searching for commits reachable from 'fix/pipelines'.
2020-12-22T18:51:03.6212870Z       INFO [12/22/20 19:51:03:62] The branch 'fix/pipelines' has no matching commits.
2020-12-22T18:51:03.6214075Z       INFO [12/22/20 19:51:03:62] Searching for commits reachable from 'fix/reprint'.
2020-12-22T18:51:03.6229192Z       INFO [12/22/20 19:51:03:62] The branch 'fix/reprint' has no matching commits.
2020-12-22T18:51:03.6230277Z       INFO [12/22/20 19:51:03:62] Searching for commits reachable from 'fix/reprint-on-release-1.0'.
2020-12-22T18:51:03.6246120Z       INFO [12/22/20 19:51:03:62] The branch 'fix/reprint-on-release-1.0' has no matching commits.
2020-12-22T18:51:03.6247244Z       INFO [12/22/20 19:51:03:62] Searching for commits reachable from 'master'.
2020-12-22T18:51:03.6270131Z       INFO [12/22/20 19:51:03:62] The branch 'master' has no matching commits.
2020-12-22T18:51:03.6271562Z       INFO [12/22/20 19:51:03:62] Searching for commits reachable from 'release/1.0'.
2020-12-22T18:51:03.6285291Z       INFO [12/22/20 19:51:03:62] The branch 'release/1.0' has a matching commit.
2020-12-22T18:51:03.6287055Z       INFO [12/22/20 19:51:03:62] Searching for commits reachable from 'origin/master'.
2020-12-22T18:51:03.6307341Z       INFO [12/22/20 19:51:03:63] The branch 'origin/master' has no matching commits.
2020-12-22T18:51:03.6309140Z       INFO [12/22/20 19:51:03:63] Searching for commits reachable from 'origin/release/1.0'.
2020-12-22T18:51:03.6323787Z       INFO [12/22/20 19:51:03:63] The branch 'origin/release/1.0' has a matching commit.
2020-12-22T18:51:03.6325846Z     INFO [12/22/20 19:51:03:63] End: Getting branches containing the commit '67cbdaa641189c1a1498806696aeb8e64ec96d4e'. (Took: 16.40ms)
2020-12-22T18:51:03.6336448Z     INFO [12/22/20 19:51:03:63] Found possible parent branches: 
2020-12-22T18:51:03.6428843Z     WARN [12/22/20 19:51:03:64] Failed to inherit Increment branch configuration, no branches found.
2020-12-22T18:51:03.6429765Z Falling back to master branch config
2020-12-22T18:51:03.6434870Z   INFO [12/22/20 19:51:03:64] End: Attempting to inherit branch configuration from parent branch (Took: 205.14ms)
2020-12-22T18:51:03.7007155Z   INFO [12/22/20 19:51:03:70] Running against branch: tags/1.0.4 (67cbdaa641189c1a1498806696aeb8e64ec96d4e)
2020-12-22T18:51:03.7014596Z   INFO [12/22/20 19:51:03:70] Current commit is tagged with version 1.0.4, version calculation is for metadata only.
2020-12-22T18:51:03.7021461Z   INFO [12/22/20 19:51:03:70] 0 commits found between 67cbdaa641189c1a1498806696aeb8e64ec96d4e and 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.7052857Z   INFO [12/22/20 19:51:03:70] Begin: Calculating base versions
2020-12-22T18:51:03.7935524Z     INFO [12/22/20 19:51:03:79] Git tag '1.0.4': 1.0.4 with commit count source 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.8019945Z     INFO [12/22/20 19:51:03:80] Begin: Finding merge base between 'release/1.0' and 'tags/1.0.4'.
2020-12-22T18:51:03.8022337Z       INFO [12/22/20 19:51:03:80] Found merge base of 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.8023802Z       INFO [12/22/20 19:51:03:80] Merge base of release/1.0' and 'tags/1.0.4 is 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.8025062Z     INFO [12/22/20 19:51:03:80] End: Finding merge base between 'release/1.0' and 'tags/1.0.4'. (Took: 0.46ms)
2020-12-22T18:51:03.8127581Z     INFO [12/22/20 19:51:03:81] Git tag '1.0.3': 1.0.3 with commit count source 689a7296ab4777dffcdd720b284fa80c9f4dddf9
2020-12-22T18:51:03.8258364Z     INFO [12/22/20 19:51:03:82] Found multiple base versions which will produce the same SemVer (1.1.0), taking oldest source for commit counting (Git tag '1.0.3')
2020-12-22T18:51:03.8259291Z     INFO [12/22/20 19:51:03:82] Base version used: Git tag '1.0.3': 1.0.3 with commit count source 689a7296ab4777dffcdd720b284fa80c9f4dddf9
2020-12-22T18:51:03.8259958Z   INFO [12/22/20 19:51:03:82] End: Calculating base versions (Took: 120.75ms)
2020-12-22T18:51:03.8273456Z   INFO [12/22/20 19:51:03:82] 15 commits found between 689a7296ab4777dffcdd720b284fa80c9f4dddf9 and 67cbdaa641189c1a1498806696aeb8e64ec96d4e
2020-12-22T18:51:03.8280816Z   INFO [12/22/20 19:51:03:82] Using branch name to calculate version tag
2020-12-22T18:51:03.8287565Z   INFO [12/22/20 19:51:03:82] Begin: Getting version tags from branch 'refs/heads/tags/1.0.4'.
2020-12-22T18:51:03.8393518Z   INFO [12/22/20 19:51:03:83] End: Getting version tags from branch 'refs/heads/tags/1.0.4'. (Took: 10.37ms)
2020-12-22T18:51:04.1876272Z   INFO [12/22/20 19:51:04:18] Begin: Creating dictionary
2020-12-22T18:51:04.1994673Z   INFO [12/22/20 19:51:04:19] End: Creating dictionary (Took: 12.10ms)
2020-12-22T18:51:04.2060990Z   INFO [12/22/20 19:51:04:20] Begin: Storing version variables to cache file C:\agents\A\_work\56\s\.git\gitversion_cache\E9DCBA6E5FADFEABA4BE279D8FFFCEA91E4FA85D.yml
2020-12-22T18:51:04.2928472Z   INFO [12/22/20 19:51:04:29] End: Storing version variables to cache file C:\agents\A\_work\56\s\.git\gitversion_cache\E9DCBA6E5FADFEABA4BE279D8FFFCEA91E4FA85D.yml (Took: 86.17ms)
2020-12-22T18:51:04.3028441Z Executing GenerateSetVersionMessage for 'AzurePipelines'.
2020-12-22T18:51:04.4600124Z Executing GenerateBuildLogOutput for 'AzurePipelines'.
2020-12-22T18:51:04.4817651Z   INFO [12/22/20 19:51:04:34] Done writing 
2020-12-22T18:51:04.4971430Z ##[section]Async Command Start: Actualizar número de compilación
2020-12-22T18:51:04.8725478Z Actualizar número de compilación 1.1.0-tags-1-0-4.1+15 para la compilación 8428
2020-12-22T18:51:04.8726418Z ##[section]Async Command End: Actualizar número de compilación
2020-12-22T18:51:04.8729502Z ##[section]Finalizando: Use GitVersion

@brechtvhb
Copy link

brechtvhb commented Jan 5, 2021

I just had this usse too :(

2021-01-05T09:51:29.9380443Z ##[section]Starting: GitVersion
2021-01-05T09:51:29.9386601Z ==============================================================================
2021-01-05T09:51:29.9387056Z Task         : GitVersion Task
2021-01-05T09:51:29.9387378Z Description  : Easy Semantic Versioning (http://semver.org) for projects using Git
2021-01-05T09:51:29.9387826Z Version      : 5.1.2
2021-01-05T09:51:29.9388055Z Author       : GitVersion Contributors
2021-01-05T09:51:29.9388395Z Help         : See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help
2021-01-05T09:51:29.9388768Z ==============================================================================
2021-01-05T09:51:30.4817921Z 
2021-01-05T09:51:30.4818409Z --------------------------
2021-01-05T09:51:30.4818700Z Installing GitVersion.Tool version 5.6.0
2021-01-05T09:51:30.4819126Z --------------------------
2021-01-05T09:51:30.4820281Z Found tool in cache: GitVersion.Tool 5.6.0 x64
2021-01-05T09:51:30.4826344Z Prepending PATH environment variable with directory: /data/devops/agent1/_work/_tool/GitVersion.Tool/5.6.0/x64
2021-01-05T09:51:30.4834322Z [command]/data/devops/agent1/_work/_tool/GitVersion.Tool/5.6.0/x64/dotnet-gitversion /data/devops/agent1/_work/4322/s /output buildserver /nofetch /config /data/devops/agent1/_work/4322/s/GitVersion.yml
2021-01-05T09:51:30.4834981Z INFO [01/05/21 10:51:30:34] Working directory: /data/devops/agent1/_work/4322/s
2021-01-05T09:51:30.4835373Z INFO [01/05/21 10:51:30:37] Branch from build environment: refs/tags/v1.5.1
2021-01-05T09:51:30.4835743Z INFO [01/05/21 10:51:30:37] Project root is: /data/devops/agent1/_work/4322/s/
2021-01-05T09:51:30.4836133Z INFO [01/05/21 10:51:30:37] DotGit directory is: /data/devops/agent1/_work/4322/s/.git
2021-01-05T09:51:30.4836832Z INFO [01/05/21 10:51:30:37] Begin: Normalizing git directory for branch 'refs/tags/v1.5.1'
2021-01-05T09:51:30.4837601Z   INFO [01/05/21 10:51:30:40] One remote found (origin -> '*').
2021-01-05T09:51:30.4838185Z   INFO [01/05/21 10:51:30:40] Skipping fetching, if GitVersion does not calculate your version as expected you might need to allow fetching or use dynamic repositories
2021-01-05T09:51:30.4838722Z   INFO [01/05/21 10:51:30:41] Creating local branch refs/heads/tags/v1.5.1 pointing at 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.4839509Z   INFO [01/05/21 10:51:30:44] Creating local branch from remote tracking 'refs/remotes/origin/6934c39a6a66a4cb332e50fad34160fc142f8bf8'.
2021-01-05T09:51:30.4840302Z   INFO [01/05/21 10:51:30:45] Skipping update of 'refs/remotes/origin/features/breadcrumb-rework' as it already matches the remote ref.
2021-01-05T09:51:30.4841040Z   INFO [01/05/21 10:51:30:45] Skipping update of 'refs/remotes/origin/features/grid-cleanup' as it already matches the remote ref.
2021-01-05T09:51:30.4841788Z   INFO [01/05/21 10:51:30:45] Skipping update of 'refs/remotes/origin/fixes/failination' as it already matches the remote ref.
2021-01-05T09:51:30.4842505Z   INFO [01/05/21 10:51:30:45] Skipping update of 'refs/remotes/origin/master' as it already matches the remote ref.
2021-01-05T09:51:30.4843232Z   INFO [01/05/21 10:51:30:46] Skipping update of 'refs/remotes/origin/releases/v1.1' as it already matches the remote ref.
2021-01-05T09:51:30.4844228Z   INFO [01/05/21 10:51:30:46] Creating local branch from remote tracking 'refs/remotes/origin/releases/v1.5'.
2021-01-05T09:51:30.4844851Z   INFO [01/05/21 10:51:30:46] HEAD points at branch 'refs/heads/tags/v1.5.1'.
2021-01-05T09:51:30.4845485Z   INFO [01/05/21 10:51:30:46] End: Normalizing git directory for branch 'refs/tags/v1.5.1' (Took: 93.87ms)
2021-01-05T09:51:30.4858966Z   INFO [01/05/21 10:51:30:48] Begin: Loading version variables from disk cache
2021-01-05T09:51:30.4864506Z     INFO [01/05/21 10:51:30:48] Cache file /data/devops/agent1/_work/4322/s/.git/gitversion_cache/AF4BA43131F74AD703ECA0952875A76168A3C294.yml not found.
2021-01-05T09:51:30.4866650Z   INFO [01/05/21 10:51:30:48] End: Loading version variables from disk cache (Took: 0.88ms)
2021-01-05T09:51:30.5800358Z   INFO [01/05/21 10:51:30:57] Using latest commit on specified branch
2021-01-05T09:51:30.5856548Z   INFO [01/05/21 10:51:30:58] No branch configuration found for branch tags/v1.5.1, falling back to default configuration
2021-01-05T09:51:30.5895260Z   INFO [01/05/21 10:51:30:58] Begin: Attempting to inherit branch configuration from parent branch
2021-01-05T09:51:30.5964467Z     INFO [01/05/21 10:51:30:59] Begin: Finding branch source of 'tags/v1.5.1'
2021-01-05T09:51:30.6089449Z       INFO [01/05/21 10:51:30:60] Begin: Finding merge base between 'tags/v1.5.1' and 'master'.
2021-01-05T09:51:30.6139475Z         INFO [01/05/21 10:51:30:61] Found merge base of ee7f199b6d0ce98d0877638a001cd6c2b7a6b5a7
2021-01-05T09:51:30.6204181Z         INFO [01/05/21 10:51:30:62] Merge base of tags/v1.5.1' and 'master is ee7f199b6d0ce98d0877638a001cd6c2b7a6b5a7
2021-01-05T09:51:30.6205721Z       INFO [01/05/21 10:51:30:62] End: Finding merge base between 'tags/v1.5.1' and 'master'. (Took: 13.32ms)
2021-01-05T09:51:30.6214403Z       INFO [01/05/21 10:51:30:62] Begin: Finding merge base between 'tags/v1.5.1' and 'releases/v1.1'.
2021-01-05T09:51:30.6229093Z         INFO [01/05/21 10:51:30:62] Found merge base of 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.6238363Z         INFO [01/05/21 10:51:30:62] Merge base of tags/v1.5.1' and 'releases/v1.1 is 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.6240064Z       INFO [01/05/21 10:51:30:62] End: Finding merge base between 'tags/v1.5.1' and 'releases/v1.1'. (Took: 2.54ms)
2021-01-05T09:51:30.6242512Z       INFO [01/05/21 10:51:30:62] Begin: Finding merge base between 'tags/v1.5.1' and 'releases/v1.5'.
2021-01-05T09:51:30.6244438Z         INFO [01/05/21 10:51:30:62] Found merge base of 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.6247833Z         INFO [01/05/21 10:51:30:62] Merge base of tags/v1.5.1' and 'releases/v1.5 is 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.6249430Z       INFO [01/05/21 10:51:30:62] End: Finding merge base between 'tags/v1.5.1' and 'releases/v1.5'. (Took: 0.63ms)
2021-01-05T09:51:30.6252383Z       INFO [01/05/21 10:51:30:62] Begin: Finding merge base between 'tags/v1.5.1' and 'origin/master'.
2021-01-05T09:51:30.6254938Z         INFO [01/05/21 10:51:30:62] Found merge base of ee7f199b6d0ce98d0877638a001cd6c2b7a6b5a7
2021-01-05T09:51:30.6257925Z         INFO [01/05/21 10:51:30:62] Merge base of tags/v1.5.1' and 'origin/master is ee7f199b6d0ce98d0877638a001cd6c2b7a6b5a7
2021-01-05T09:51:30.6259522Z       INFO [01/05/21 10:51:30:62] End: Finding merge base between 'tags/v1.5.1' and 'origin/master'. (Took: 0.65ms)
2021-01-05T09:51:30.6261964Z       INFO [01/05/21 10:51:30:62] Begin: Finding merge base between 'tags/v1.5.1' and 'origin/releases/v1.1'.
2021-01-05T09:51:30.6266048Z         INFO [01/05/21 10:51:30:62] Found merge base of 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.6271582Z         INFO [01/05/21 10:51:30:62] Merge base of tags/v1.5.1' and 'origin/releases/v1.1 is 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.6273187Z       INFO [01/05/21 10:51:30:62] End: Finding merge base between 'tags/v1.5.1' and 'origin/releases/v1.1'. (Took: 1.07ms)
2021-01-05T09:51:30.6275625Z       INFO [01/05/21 10:51:30:62] Begin: Finding merge base between 'tags/v1.5.1' and 'origin/releases/v1.5'.
2021-01-05T09:51:30.6277257Z         INFO [01/05/21 10:51:30:62] Found merge base of 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.6280498Z         INFO [01/05/21 10:51:30:62] Merge base of tags/v1.5.1' and 'origin/releases/v1.5 is 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.6282082Z       INFO [01/05/21 10:51:30:62] End: Finding merge base between 'tags/v1.5.1' and 'origin/releases/v1.5'. (Took: 0.58ms)
2021-01-05T09:51:30.6355928Z       INFO [01/05/21 10:51:30:63] Multiple source branches have been found, picking the first one (releases/v1.5).
2021-01-05T09:51:30.6356343Z This may result in incorrect commit counting.
2021-01-05T09:51:30.6356875Z Options were:
2021-01-05T09:51:30.6357746Z releases/v1.5, origin/releases/v1.5, master, origin/master, releases/v1.1, origin/releases/v1.1
2021-01-05T09:51:30.6361590Z     INFO [01/05/21 10:51:30:63] End: Finding branch source of 'tags/v1.5.1' (Took: 39.81ms)
2021-01-05T09:51:30.6397337Z     INFO [01/05/21 10:51:30:63] Begin: Getting branches containing the commit '6934c39a6a66a4cb332e50fad34160fc142f8bf8'.
2021-01-05T09:51:30.6400221Z       INFO [01/05/21 10:51:30:63] Trying to find direct branches.
2021-01-05T09:51:30.6403925Z       INFO [01/05/21 10:51:30:64] No direct branches found, searching through all branches.
2021-01-05T09:51:30.6409157Z       INFO [01/05/21 10:51:30:64] Searching for commits reachable from 'master'.
2021-01-05T09:51:30.6444145Z       INFO [01/05/21 10:51:30:64] The branch 'master' has no matching commits.
2021-01-05T09:51:30.6447482Z       INFO [01/05/21 10:51:30:64] Searching for commits reachable from 'releases/v1.1'.
2021-01-05T09:51:30.6467177Z       INFO [01/05/21 10:51:30:64] The branch 'releases/v1.1' has no matching commits.
2021-01-05T09:51:30.6470227Z       INFO [01/05/21 10:51:30:64] Searching for commits reachable from 'releases/v1.5'.
2021-01-05T09:51:30.6496380Z       INFO [01/05/21 10:51:30:64] The branch 'releases/v1.5' has a matching commit.
2021-01-05T09:51:30.6499101Z       INFO [01/05/21 10:51:30:64] Searching for commits reachable from 'origin/master'.
2021-01-05T09:51:30.6528077Z       INFO [01/05/21 10:51:30:65] The branch 'origin/master' has no matching commits.
2021-01-05T09:51:30.6529063Z       INFO [01/05/21 10:51:30:65] Searching for commits reachable from 'origin/releases/v1.1'.
2021-01-05T09:51:30.6548230Z       INFO [01/05/21 10:51:30:65] The branch 'origin/releases/v1.1' has no matching commits.
2021-01-05T09:51:30.6549258Z       INFO [01/05/21 10:51:30:65] Searching for commits reachable from 'origin/releases/v1.5'.
2021-01-05T09:51:30.6572643Z       INFO [01/05/21 10:51:30:65] The branch 'origin/releases/v1.5' has a matching commit.
2021-01-05T09:51:30.6595488Z     INFO [01/05/21 10:51:30:65] End: Getting branches containing the commit '6934c39a6a66a4cb332e50fad34160fc142f8bf8'. (Took: 17.76ms)
2021-01-05T09:51:30.6596452Z     INFO [01/05/21 10:51:30:65] Begin: Getting branches containing the commit '6934c39a6a66a4cb332e50fad34160fc142f8bf8'.
2021-01-05T09:51:30.6596923Z       INFO [01/05/21 10:51:30:65] Trying to find direct branches.
2021-01-05T09:51:30.6597291Z       INFO [01/05/21 10:51:30:65] No direct branches found, searching through all branches.
2021-01-05T09:51:30.6597900Z       INFO [01/05/21 10:51:30:65] Searching for commits reachable from 'master'.
2021-01-05T09:51:30.6621054Z       INFO [01/05/21 10:51:30:66] The branch 'master' has no matching commits.
2021-01-05T09:51:30.6622051Z       INFO [01/05/21 10:51:30:66] Searching for commits reachable from 'releases/v1.1'.
2021-01-05T09:51:30.6639354Z       INFO [01/05/21 10:51:30:66] The branch 'releases/v1.1' has no matching commits.
2021-01-05T09:51:30.6640382Z       INFO [01/05/21 10:51:30:66] Searching for commits reachable from 'releases/v1.5'.
2021-01-05T09:51:30.6662771Z       INFO [01/05/21 10:51:30:66] The branch 'releases/v1.5' has a matching commit.
2021-01-05T09:51:30.6691091Z       INFO [01/05/21 10:51:30:66] Searching for commits reachable from 'origin/master'.
2021-01-05T09:51:30.6722165Z       INFO [01/05/21 10:51:30:67] The branch 'origin/master' has no matching commits.
2021-01-05T09:51:30.6723041Z       INFO [01/05/21 10:51:30:67] Searching for commits reachable from 'origin/releases/v1.1'.
2021-01-05T09:51:30.6740011Z       INFO [01/05/21 10:51:30:67] The branch 'origin/releases/v1.1' has no matching commits.
2021-01-05T09:51:30.6740817Z       INFO [01/05/21 10:51:30:67] Searching for commits reachable from 'origin/releases/v1.5'.
2021-01-05T09:51:30.6762790Z       INFO [01/05/21 10:51:30:67] The branch 'origin/releases/v1.5' has a matching commit.
2021-01-05T09:51:30.6763753Z     INFO [01/05/21 10:51:30:67] End: Getting branches containing the commit '6934c39a6a66a4cb332e50fad34160fc142f8bf8'. (Took: 17.77ms)
2021-01-05T09:51:30.6772014Z     INFO [01/05/21 10:51:30:67] Found possible parent branches: 
2021-01-05T09:51:30.6825830Z     WARN [01/05/21 10:51:30:67] Failed to inherit Increment branch configuration, no branches found.
2021-01-05T09:51:30.6830866Z Falling back to master branch config
2021-01-05T09:51:30.6833576Z   INFO [01/05/21 10:51:30:67] End: Attempting to inherit branch configuration from parent branch (Took: 90.43ms)
2021-01-05T09:51:30.7236630Z   INFO [01/05/21 10:51:30:72] Running against branch: tags/v1.5.1 (6934c39a6a66a4cb332e50fad34160fc142f8bf8)
2021-01-05T09:51:30.7249125Z   INFO [01/05/21 10:51:30:72] Current commit is tagged with version 1.5.1, version calculation is for metadata only.
2021-01-05T09:51:30.7296321Z   INFO [01/05/21 10:51:30:72] 0 commits found between 6934c39a6a66a4cb332e50fad34160fc142f8bf8 and 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.7298654Z   INFO [01/05/21 10:51:30:72] Begin: Calculating base versions
2021-01-05T09:51:30.7653008Z     INFO [01/05/21 10:51:30:76] Git tag 'v1.5.1': 1.5.1 with commit count source 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.7704980Z     INFO [01/05/21 10:51:30:76] Begin: Finding merge base between 'releases/v1.1' and 'tags/v1.5.1'.
2021-01-05T09:51:30.7720862Z       INFO [01/05/21 10:51:30:77] Found merge base of 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.7737082Z       INFO [01/05/21 10:51:30:77] Merge base of releases/v1.1' and 'tags/v1.5.1 is 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.7739239Z     INFO [01/05/21 10:51:30:77] End: Finding merge base between 'releases/v1.1' and 'tags/v1.5.1'. (Took: 3.45ms)
2021-01-05T09:51:30.7751998Z     INFO [01/05/21 10:51:30:77] Begin: Finding branch source of 'releases/v1.1'
2021-01-05T09:51:30.7783151Z       INFO [01/05/21 10:51:30:77] Begin: Finding merge base between 'releases/v1.1' and 'master'.
2021-01-05T09:51:30.7794768Z         INFO [01/05/21 10:51:30:77] Found merge base of 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.7975494Z         INFO [01/05/21 10:51:30:78] Merge base of releases/v1.1' and 'master is 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.7977223Z       INFO [01/05/21 10:51:30:78] End: Finding merge base between 'releases/v1.1' and 'master'. (Took: 3.20ms)
2021-01-05T09:51:30.7978663Z     INFO [01/05/21 10:51:30:78] End: Finding branch source of 'releases/v1.1' (Took: 6.77ms)
2021-01-05T09:51:30.7980300Z     INFO [01/05/21 10:51:30:78] Begin: Finding merge base between 'releases/v1.5' and 'tags/v1.5.1'.
2021-01-05T09:51:30.7981172Z       INFO [01/05/21 10:51:30:78] Found merge base of 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.7982960Z       INFO [01/05/21 10:51:30:78] Merge base of releases/v1.5' and 'tags/v1.5.1 is 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.7983968Z     INFO [01/05/21 10:51:30:78] End: Finding merge base between 'releases/v1.5' and 'tags/v1.5.1'. (Took: 0.26ms)
2021-01-05T09:51:30.7985582Z     INFO [01/05/21 10:51:30:78] Release branch exists -> Version in branch name: 1.1.0 with commit count source 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.7987127Z     INFO [01/05/21 10:51:30:78] Git tag 'v1.5.0': 1.5.0 with commit count source ee7f199b6d0ce98d0877638a001cd6c2b7a6b5a7
2021-01-05T09:51:30.7988839Z     INFO [01/05/21 10:51:30:78] Git tag 'v1.4.0': 1.4.0 with commit count source 412f459c18d386ac4af952bc7e46845a63898d42
2021-01-05T09:51:30.7990384Z     INFO [01/05/21 10:51:30:78] Git tag 'v1.3.0': 1.3.0 with commit count source 65483754705f8382d564ea2578f6fb8014b9d260
2021-01-05T09:51:30.7991793Z     INFO [01/05/21 10:51:30:78] Git tag 'v1.2.0': 1.2.0 with commit count source 213ce1eeaeb34c170aeab858e95dd8754c3fea2a
2021-01-05T09:51:30.7993335Z     INFO [01/05/21 10:51:30:78] Git tag 'v1.1.0': 1.1.0 with commit count source 8d0db74776d08fdc2062717e6ed3b7024b3aaae4
2021-01-05T09:51:30.7995786Z     INFO [01/05/21 10:51:30:79] Git tag 'v1.0.0': 1.0.0 with commit count source 3bafd192831c2c79f8827324ef052dd3647aed19
2021-01-05T09:51:30.7997727Z     INFO [01/05/21 10:51:30:79] Found multiple base versions which will produce the same SemVer (1.6.0), taking oldest source for commit counting (Git tag 'v1.5.0')
2021-01-05T09:51:30.7999148Z     INFO [01/05/21 10:51:30:79] Base version used: Git tag 'v1.5.0': 1.5.0 with commit count source ee7f199b6d0ce98d0877638a001cd6c2b7a6b5a7
2021-01-05T09:51:30.7999669Z   INFO [01/05/21 10:51:30:79] End: Calculating base versions (Took: 64.93ms)
2021-01-05T09:51:30.8000146Z   INFO [01/05/21 10:51:30:79] 1 commits found between ee7f199b6d0ce98d0877638a001cd6c2b7a6b5a7 and 6934c39a6a66a4cb332e50fad34160fc142f8bf8
2021-01-05T09:51:30.8000608Z   INFO [01/05/21 10:51:30:79] Using branch name to calculate version tag
2021-01-05T09:51:30.8001220Z   INFO [01/05/21 10:51:30:79] Begin: Getting version tags from branch 'refs/heads/tags/v1.5.1'.
2021-01-05T09:51:30.8368148Z   INFO [01/05/21 10:51:30:80] End: Getting version tags from branch 'refs/heads/tags/v1.5.1'. (Took: 10.92ms)
2021-01-05T09:51:30.8369154Z   INFO [01/05/21 10:51:30:81] Begin: Creating dictionary
2021-01-05T09:51:30.8369613Z   INFO [01/05/21 10:51:30:81] End: Creating dictionary (Took: 4.94ms)
2021-01-05T09:51:30.8370185Z   INFO [01/05/21 10:51:30:81] Begin: Storing version variables to cache file /data/devops/agent1/_work/4322/s/.git/gitversion_cache/AF4BA43131F74AD703ECA0952875A76168A3C294.yml
2021-01-05T09:51:30.8698180Z   INFO [01/05/21 10:51:30:84] End: Storing version variables to cache file /data/devops/agent1/_work/4322/s/.git/gitversion_cache/AF4BA43131F74AD703ECA0952875A76168A3C294.yml (Took: 30.98ms)
2021-01-05T09:51:30.8747091Z Executing GenerateSetVersionMessage for 'AzurePipelines'.
2021-01-05T09:51:30.9338206Z Executing GenerateBuildLogOutput for 'AzurePipelines'.
2021-01-05T09:51:30.9394264Z   INFO [01/05/21 10:51:30:86] Done writing 
2021-01-05T09:51:30.9471686Z ##[section]Async Command Start: Update Build Number
2021-01-05T09:51:31.1087136Z Update build number to 1.6.0-tags-v1-5-1.1+1 for build 14462
2021-01-05T09:51:31.1087498Z ##[section]Async Command End: Update Build Number
2021-01-05T09:51:31.1088912Z ##[section]Finishing: GitVersion

@hansrodtang
Copy link

I have encountered this bug too, and it seems to be somewhat related to #1702 (and #2190 ), at least this seems to be what causes it to not find any matching branches for the tagged commit.

gep13 added a commit to gep13/GitVersion that referenced this issue Feb 1, 2021
Will rebase with proper commit message and tests later.
gep13 added a commit to gep13/GitVersion that referenced this issue Feb 6, 2021
Will rebase with proper commit message and tests later.
gep13 added a commit to gep13/GitVersion that referenced this issue Feb 6, 2021
Without the code change, this test fails with an incorrectly asserted
version number, similar to 0.3.0-tags-01, when it should be 0.2.0.
gep13 added a commit to gep13/GitVersion that referenced this issue Feb 6, 2021
Ensure that an increment of the version number only occurs when the
sha of the commit is different from the base version sha.
gep13 added a commit to gep13/GitVersion that referenced this issue Feb 6, 2021
Without the code change, this test fails with an incorrectly asserted
version number, similar to 0.3.0-tags-01, when it should be 0.2.0.
gep13 added a commit to gep13/GitVersion that referenced this issue Feb 6, 2021
Without the code change, this test fails with an incorrectly asserted
version number, similar to 0.3.0-tags-01, when it should be 0.2.0.
gep13 added a commit to gep13/GitVersion that referenced this issue Feb 6, 2021
Since this is where the original issue was reported.
@arturcic arturcic linked a pull request Feb 6, 2021 that will close this issue
5 tasks
arturcic pushed a commit that referenced this issue Feb 6, 2021
Ensure that an increment of the version number only occurs when the
sha of the commit is different from the base version sha.
arturcic pushed a commit that referenced this issue Feb 6, 2021
Without the code change, this test fails with an incorrectly asserted
version number, similar to 0.3.0-tags-01, when it should be 0.2.0.
arturcic pushed a commit that referenced this issue Feb 6, 2021
Since this is where the original issue was reported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants