Skip to content

Azure DevOps - Git branch name #438

Closed
@dandragut

Description

@dandragut

Describe your idea

AzureDevops checks out Git branches in detached mode, resulting in git.branch being populated with the commit hash.

Expected Behavior

The branch name can be populated from BUILD_SOURCEBRANCHNAME environment vaiable as per Azure Devops / Azure Pipelines - Build variables

Additional context

Will provide a pull request soon with proposed changes for review.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions