You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails on execute GitVersion with the following:
Starting: execute GitVersion
==============================================================================
Task : Execute GitVersion Task
Description : Easy Semantic Versioning (https://semver.org/) for projects using Git
Version : 3.1.11
Author : GitTools Contributors
Help : See the [documentation](https://gitversion.net/docs/) for help
==============================================================================
Running on: 'Azure Pipelines'
Disable Telemetry
Command: git -C D:/BuildAgents/_work/105/s rev-parse --is-shallow-repository
Command: D:\AgentTools\GitVersion.Tool\5.12.0\dotnet-gitversion.exe --roll-forward Major D:/BuildAgents/_work/105/s /output json /l console /updateassemblyinfo
##[error]GitVersion output is not valid JSON
dotnet-gitversion Output:
-------------------
undefined
-------------------
undefined
Finishing: execute GitVersion
I have tried with a custom GitVersion.yml config file that I know is valid as works on another project with the same result, so I'm using the default config for testing.
What is expected?
It should not error out with invalid JSON error.
Steps to Reproduce
Create new pipeline in Azure DevOps
Add GitTools extensions
Add gitversion/setup step
Add gitversion/execute step
Run pipeline
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
Starting: setup GitVersion
==============================================================================
Task : Setup GitVersion Task
Description : Easy Semantic Versioning (https://semver.org) for projects using Git
Version : 3.1.11
Author : GitTools Contributors
Help : See the [documentation](https://gitversion.net/docs/) forhelp
==============================================================================
Running on: 'Azure Pipelines'
Disable Telemetry
--------------------------
Acquiring GitVersion.Tool for version spec: 5.x
--------------------------
Querying tool versions for[email protected]
Found matching version: 5.12.0
Looking forlocal tool [email protected]
Found tool [email protected] at D:\AgentTools\GitVersion.Tool\5.12.0
--------------------------
GitVersion.Tool version: 5.12.0 found inlocal cache at D:\AgentTools\GitVersion.Tool\5.12.0.
--------------------------
Prepending D:\AgentTools\GitVersion.Tool\5.12.0 to PATH
Updated PATH: D:\AgentTools\GitVersion.Tool\5.12.0;
Set GITVERSION_PATH to D:\AgentTools\GitVersion.Tool\5.12.0
dotnet-gitversion installed successfully
dotnet-gitversion Output:
-------------------
undefined
-------------------
GitVersion setup successfully
Finishing: setup GitVersion
----------------------------------------------------
Starting: execute GitVersion
==============================================================================
Task : Execute GitVersion Task
Description : Easy Semantic Versioning (https://semver.org) for projects using Git
Version : 3.1.11
Author : GitTools Contributors
Help : See the [documentation](https://gitversion.net/docs/) forhelp
==============================================================================
Running on: 'Azure Pipelines'
Disable Telemetry
Command: git -C D:/BuildAgents/_work/105/s rev-parse --is-shallow-repository
Command: D:\AgentTools\GitVersion.Tool\5.12.0\dotnet-gitversion.exe --roll-forward Major D:/BuildAgents//_work/105/s /output json /l console /updateassemblyinfo
##[error]GitVersion output is not valid JSON
dotnet-gitversion Output:
-------------------
undefined
-------------------
undefined
Finishing: execute GitVersion
The text was updated successfully, but these errors were encountered:
Prerequisites
GitVersion package
AzureDevops task
GitVersion version
5.12.0
Operating system
Windows
What are you seeing?
I have an Azure DevOps pipeline that does the following steps:
It fails on
execute GitVersion
with the following:I have tried with a custom GitVersion.yml config file that I know is valid as works on another project with the same result, so I'm using the default config for testing.
What is expected?
It should not error out with invalid JSON error.
Steps to Reproduce
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
The text was updated successfully, but these errors were encountered: