Skip to content

[ISSUE]: Better error handling in Azure #1932

@mc0re

Description

@mc0re

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.5.1

Operating system

Windows

What are you seeing?

When there is some error when running GitVersion, the Azure package simply reports:

##[error]GitVersion output is not valid JSON

It'd be better to actually show the error.
This is the actual log.

Running on: 'Azure Pipelines'
Disable Telemetry
Command: git -C D:\a\1\s rev-parse --is-shallow-repository
Command: C:\hostedtoolcache\windows\GitVersion.Tool\6.5.1\dotnet-gitversion.exe --roll-forward Major D:\a\1\s /output json /l console /config D:\a\1\s\ci\GitVersion.yml
##[error]GitVersion output is not valid JSON
dotnet-gitversion Output:
-------------------
undefined
-------------------
undefined

What is expected?

GitVersion actual error.

Steps to Reproduce

Some error during Azure run

RepositoryFixture Test

No response

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

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