Skip to content

Why is the Build number overwritten in Azure Dev Ops #1457

@kirkone

Description

@kirkone

Hi,

I am using the VSTS task to get my nuget packages versioned on build in VSTS ans I was wondering why the "BUILD_BUILDNUMBER" environment variable is being overwritten completely when there is no GitVersion variable in it. I can not see the benefit of this behavior. Did I miss something?

It would be nice to have a name for a build while using GitVersion.

I think here should be a slightly different logic:

if (buildNum == newBuildNum)

Thank you for your help.
KirK

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions