GitTools / actions

GitHub Action that installs and uses the GitVersion and GitReleaseManager tools
MIT License
218 stars 63 forks source link

[ISSUE]: Azure DevOps Pipeline GitVersion Task with error: "maxBuffer length exceeded" #1237

Open ulluoink opened 3 weeks ago

ulluoink commented 3 weeks ago

Prerequisites

GitVersion package

AzureDevops task

What are you seeing?

In Azure yml pipeline step we use the gitversion tasks just like in the usage examples and get following error when executing

gitversion/execute@3.0.0

This is the output:

Command: git -C C:/a/15/s rev-parse --is-shallow-repository Command: C:\hostedtoolcache\windows\GitVersion.Tool\6.0.2\dotnet-gitversion.exe C:/a/15/s /output json /output buildserver /config C:\a\15\s\GitVersion.yml

[error]stdout maxBuffer length exceeded

What is expected?

well guess what ? should work

Steps to Reproduce

azure devops pipeline with these steps:

steps:

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

No response

edwardvandevorst-philips commented 2 weeks ago

I see similar issue on GitHub. Removing stale branches, i.e. making sure that the output is smaller, solves the issue.

arielangeles commented 2 weeks ago

Same here. This happens in task version 2.x and 3.x, using version spec 5.x. Workaround for now is to go back to v1.x on those pipelines.

LiamCottrell commented 1 day ago

Had the same issue as well as others, version 3 of task with version spec 5 of the tool. Couldn't resolve until i went back to version 0 of the devops tasks.