Skip to content
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 Release pipeline throws the error on GitVersion updatebuildnumber #1493

Open
2 tasks done
nikithamkoshy opened this issue Feb 7, 2025 · 0 comments
Open
2 tasks done

Comments

@nikithamkoshy
Copy link

Prerequisites

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

GitVersion package

AzureDevops task

What are you seeing?

I am using Gitversion tasks in Azure Release pipeline to find the next tag sequence. I have added update-build-number=false in the execute gitversion task.
Screenshot of the task attached

Image

However, the release pipeline fails with the error:

2025-02-06T11:57:18.5806353Z Command: /opt/hostedtoolcache/GitVersion.Tool/6.0.5/dotnet-gitversion --roll-forward Major /home/vsts/work/r1/a/_temp/ /output json /l console /overrideconfig update-build-number=false
2025-02-06T11:57:21.7120908Z ##[error]Unable to process command '##vso[build.updatebuildnumber]0.3.0-alpha.0' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
2025-02-06T11:57:21.7137378Z ##[error]Value cannot be null. (Parameter 'buildId')

Here are the version details of the task that I am using in the release pipeline

steps:

- task: gittools.gittools.setup-gitversion-task.gitversion/setup@3

  displayName: 'Setup gitversion'

  inputs:

    versionSpec: 6.0.5

    preferLatestVersion: true

Here is the link to stackoverflow discussion for detailed discussion - https://stackoverflow.com/questions/79417856/azure-devops-release-pipeline-throws-error-on-gitversion-updatebuildnumber

What is expected?

The Gitversion task in the release pipeline shouldn't attempt to update the build number

Steps to Reproduce

Create a Release pipeline in Azure with the following Tasks

Image Image Image (Select the working directory to be the path where your test repository is cloned into

Run the pipeline

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant