You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since GitVersion 5.8.2, support for running in Buildkite has been added. However when running GitVersion for pull requests in Buildkite, the returned version strings do not match the expected format.
Expected Behavior
The format of the returned variables e.g. SemVer should match the respective pull-requestbranch configuration as per the documentation.
For example if we had a repo that where main was currently on version 6.9.0, we would expect to see a version number on PRs such as "SemVer": "6.10.0-PullRequest022.1"
Actual Behavior
The format of the returned variables match the branch configuration of feature branches e.g. "SemVer": "6.10.0-foo.1"
Possible Fix
The problem is likely that for pull requests the BUILDKITE_BRANCH env var value references the head i.e. source branch of the PR. I assume this causes the regex pattern on the branch configuration to not match.
Steps to Reproduce
Follow the instructions as per the GitVersion documentation example, but run it for a PR.
Context
This creates a difference when running in Buildkite compared to our other CI systems (including TeamCity).
Your Environment
Version Used: 5.8.2
Operating System and version: Windows 10/ Windows Server 2019
The text was updated successfully, but these errors were encountered:
Since GitVersion 5.8.2, support for running in Buildkite has been added. However when running GitVersion for pull requests in Buildkite, the returned version strings do not match the expected format.
Expected Behavior
The format of the returned variables e.g.
SemVer
should match the respectivepull-request
branch configuration as per the documentation.For example if we had a repo that where
main
was currently on version6.9.0
, we would expect to see a version number on PRs such as"SemVer": "6.10.0-PullRequest022.1"
Actual Behavior
The format of the returned variables match the branch configuration of feature branches e.g.
"SemVer": "6.10.0-foo.1"
Possible Fix
The problem is likely that for pull requests the
BUILDKITE_BRANCH
env var value references the head i.e. source branch of the PR. I assume this causes the regex pattern on the branch configuration to not match.Steps to Reproduce
Follow the instructions as per the GitVersion documentation example, but run it for a PR.
Context
This creates a difference when running in Buildkite compared to our other CI systems (including TeamCity).
Your Environment
The text was updated successfully, but these errors were encountered: