Skip to content

[ISSUE]: GitVersion not completing in ADO Pipeline #4960

@tiltKyleGetty

Description

@tiltKyleGetty

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

AzureDevops task

GitVersion version

6.7.0

Operating system

Linux

What are you seeing?

Have GitVersion.yml as

workflow: TrunkBased/preview1
# Branch-specific configuration
branches:
  main:
    increment: Minor
    regex: ^develop$|^main$
  release:
    mode: ManualDeployment
    label: ''
    increment: Patch
    prevent-increment:
      of-merged-branch: true
      when-branch-merged: false
      when-current-commit-tagged: false
    track-merge-target: false
    track-merge-message: true
    regex: ^releases?[\/-](?<BranchName>.+)
    source-branches:
      - main
    is-source-branch-for: []
    tracks-release-branches: false
    is-release-branch: true
    is-main-branch: false
    pre-release-weight: 30000
  feature:
    regex: (?<BranchName>.+)

Running locally, this completes fairly quickly but seems to hang without any output in ADO using gitversion/execute@4

Repo history is fairly large, but during our release process we are tagging the version, so it should not need to go very deep to calculate. Also tried an ignore commits-before to see if that helped didn't seem to make a difference.

What is expected?

Local and ADO Pipeline runs should take the same amount of time.

Steps to Reproduce

Unclear the exact steps, this config and pattern is working fine in other repos, so may be a history size factor.

RepositoryFixture Test

No response

Output log or link to your CI build (if appropriate).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions