sharpmind-de / gradle-gitVersioner-plugin

Extracts versionCode and versionName from git history
Apache License 2.0
2 stars 0 forks source link

Support branch name detection for Azure Build Pipelines #1

Open stolzem opened 8 months ago

stolzem commented 8 months ago

Building a project via azure build pipelines failes to detect the triggering branch name.

Versions are generated like this: 14.null-3

Azure pipelines suppy the branch name via variable Build.SourceBranchName

See also: https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#build-variables-devops-services

stolzem commented 6 months ago

No gitVersioner detects if it runs in a Azure Pipeline. If so it takes the branch name from BUILD_SOURCEBRANCHNAME env variable.

Available in version 0.6.6.