Skip to content

[Feature] Azure Devops - Add BuildId to InformationalVersion #2246

@buckleyGI

Description

@buckleyGI

Is your feature request related to a problem? Please describe.

Is there a way to get more information passed to the InformationalVersion?

Detailed Description

Currently it is
1.0.0+6.Branch.master.Sha.664fa830ed99f72dbcee3d3230fd1ba1d2357db6

But we would like to add the BuildId of Azure DevOps so the assemblies are stamped as
1.0.0+6.Branch.master.Sha.664fa830ed99f72dbcee3d3230fd1ba1d2357db6-BuildId=123

The Azure Devops GitVersion task is updating the AssemblyInfo.cs and we are looking for a way to instruct it to add some information to the variable

Can this be done through configuration? I looked at the existing option "Additional GitVersion.exe arguments" but to somehow influence it.

Context

Correlating a assemblies to their build id is useful as multiple builds (with different tests being executed for example) can produce the same InformationalVersion

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