Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BitBucket handling of publicReleaseRefSpec #936

Merged
merged 1 commit into from May 10, 2023
Merged

Fix BitBucket handling of publicReleaseRefSpec #936

merged 1 commit into from May 10, 2023

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented May 10, 2023

BitBucket environment variables do not include the refs/ prefix, so we need to add them ourselves (as we do for some other cloud build services already).

Fixes #935

@AArnott AArnott changed the title Fix935 Fix BitBucket handling of publicReleaseRefSpec May 10, 2023
@AArnott AArnott added this to the v3.6 milestone May 10, 2023
BitBucket environment variables do not include the `refs/` prefix, so we need to add them ourselves (as we do for some other cloud build services already).

Fixes #935
@AArnott AArnott changed the base branch from main to v3.6 May 10, 2023 14:26
@AArnott
Copy link
Collaborator Author

AArnott commented May 10, 2023

@henriq would you be willing to test this out? I could push the PR build to our CI feed so you could consume it via nuget package.

@henriq
Copy link

henriq commented May 10, 2023

@AArnott Sure!

@AArnott
Copy link
Collaborator Author

AArnott commented May 10, 2023

Thanks. It's ready for your testing at https://dev.azure.com/andrewarnott/OSS/_artifacts/feed/PublicCI/NuGet/Nerdbank.GitVersioning/overview/3.6.130-gb8bbcd03d8 (and the nbgv equivalent package).
I'll merge this PR after you confirm it works, @henriq.

@henriq
Copy link

henriq commented May 10, 2023

LGTM! I've tested this for both branches and tags and get the expected behavior.

Branch

"BuildingRef": "refs/heads/release/test/v1.0"

Tag

"BuildingRef": "refs/tags/2.0"

@AArnott
Copy link
Collaborator Author

AArnott commented May 10, 2023

Great. Thank you.

@AArnott AArnott merged commit 42295ab into v3.6 May 10, 2023
14 checks passed
@AArnott AArnott deleted the fix935 branch May 10, 2023 15:25
@AArnott
Copy link
Collaborator Author

AArnott commented May 11, 2023

@henriq this is now available as https://github.com/dotnet/Nerdbank.GitVersioning/releases/tag/v3.6.132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BuildingRef is incorrectly populated on Bitbucket pipelines
2 participants