Skip to content

Make GitVersion config less ambiguous#6195

Merged
valadas merged 1 commit intodnnsoftware:developfrom
bdukes:fix-gitversion
Nov 6, 2024
Merged

Make GitVersion config less ambiguous#6195
valadas merged 1 commit intodnnsoftware:developfrom
bdukes:fix-gitversion

Conversation

@bdukes
Copy link
Copy Markdown
Contributor

@bdukes bdukes commented Nov 5, 2024

Summary

Some of our builds have failed due to Cake being unable to parse the GitVersion output. Running locally with Diagnostic verbosity, I receive the following error message at the top of the output:

Multiple branch configurations match the current branch branchName of 'bdukes/merge-develop-to-release-10.0.0'. Using the first matching configuration, 'develop'. Matching configurations include:'
 - develop
 - release'

I've deleted any branches that I can see with both develop and release in the name for the short-term.

This PR updates the regex field for the branches to include ^ (starts with) and $ (ends with) tokens, so that the match is exact (i.e. the develop rule only matches the develop branch, not other branches that have develop in the name).

@bdukes bdukes added this to the 9.13.6 milestone Nov 5, 2024
@bdukes bdukes requested a review from valadas November 5, 2024 23:17
Copy link
Copy Markdown
Contributor

@david-poindexter david-poindexter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - thanks @bdukes

Copy link
Copy Markdown
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@valadas valadas merged commit 020547c into dnnsoftware:develop Nov 6, 2024
@bdukes bdukes deleted the fix-gitversion branch November 6, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants