-
Notifications
You must be signed in to change notification settings - Fork 63
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
[ISSUE]: Azure DevOps Pipeline GitVersion Task with error: "maxBuffer length exceeded" #1237
Comments
I see similar issue on GitHub. Removing stale branches, i.e. making sure that the output is smaller, solves the issue. |
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. |
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. |
#1237 - increase 'maxBuffer' to 10MB
This issue is still occurring on our repo with v3 of the execute task. The version calculation works fine with v0. - task: gitversion/[email protected]
displayName: Install GitVersion
inputs:
versionSpec: '6.0.4'
## fails
- task: gitversion/[email protected]
displayName: Determine Version
inputs:
useConfigFile: true
configFilePath: 'GitVersion.yml'
## works
- task: gitversion/execute@0
displayName: Determine Version
inputs:
useConfigFile: true
configFilePath: 'GitVersion.yml' The pipeline job fails with:
|
@luk355 can you attach some logs as it's not clear what you see |
@arturcic, thanks for prompt response. I've updated the post above with pipeline output. It fails with |
@luk355 this is the buffer size actions/src/agents/common/build-agent.ts Line 233 in 8bbeaf6
export TF_BUILD=true
export GIT_BRANCH={your-branch-name}
dotnet-gitversion /home/vsts/work/1/s /output json /output buildserver /config GitVersion.yml |
you will need to install the dotnet sdk if you don't have it |
I did try to run the command locally on on one of the failing branches in Azure Pipelines.
... when checking the size of I thought the git state (branch) before the command is run might have affect on the log output but it seems it does not. I have tried to run this command on |
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/[email protected]
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:
task: gitversion/[email protected]
displayName: 'Install GitVersion'
inputs:
versionSpec: '6.x'
task: gitversion/[email protected]
displayName: 'Configure Git Version'
name: ${{ parameters.VersionStepName }}
inputs:
useConfigFile: true
configFilePath: ${{ parameters.ConfigFilePath }}
Output log or link to your CI build (if appropriate).
No response
The text was updated successfully, but these errors were encountered: