Skip to content

Allow exclusions to be specified at the start of the branch name - #46

Closed
atwright wants to merge 1 commit into
jenkinsci:masterfrom
atwright:upstream
Closed

Allow exclusions to be specified at the start of the branch name#46
atwright wants to merge 1 commit into
jenkinsci:masterfrom
atwright:upstream

Conversation

@atwright

Copy link
Copy Markdown

Hi all - we were trying to setup some includes within BitBucket to only scan particular branches in a repo and came across what looks like a small bug. The code in getPattern() was prepending a .* to the second and subsequent patterns in the input.
Eg, input of:
master branch
would result in trying to match:
master *branch
which would then incorrectly match a branch name of:
TEST-branch
whereas we only would expect it to match:
branch
in that case.

Note that the visibility change on isExcluded is just for the purposes of testing - not required for the actual fix.

See what you think, happy to discuss or change if you'd like more info.

Kind regards,
Andrew

@jetersen

Copy link
Copy Markdown
Member

This is linked to JENKINS-42657

Good catch 👍

@nfalco79

nfalco79 commented Jun 6, 2017

Copy link
Copy Markdown
Member

It's good also for me (a really wanted fix)

@stephenc

Copy link
Copy Markdown
Member

superseded by #53

@stephenc

Copy link
Copy Markdown
Member

@stephenc stephenc closed this Jun 12, 2017
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.

4 participants