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 remotes wildcard branch spec #233

Closed
wants to merge 1 commit into from

Conversation

blt04
Copy link

@blt04 blt04 commented Jun 8, 2014

This fixes a bug when using remotes/ in a wildcard branch spec, such as:

remotes/origin/*

Without this patch, new builds fail if using remotes/ and a wildcard in the branch name. If a build has previously run, the previous branch will aways be used instead of the modified branch.

This makes matching "remotes/" optional in BranchSpec.

This fixes a bug when using "remotes/" in a wildcard branc spec, such as:

    remotes/origin/*

The git plugin documentation suggests using the full branch spec
(including remotes/) for branches with slashes.  Using "remotes/" in a
wildcard branch should not fail.

This makes matching "remotes/" optional in BranchSpec.
@cloudbees-pull-request-builder

plugins » git-plugin #373 SUCCESS
This pull request looks good

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@MarkEWaite
Copy link
Contributor

Do Alexander Link's changes that were included in git client plugin 1.10.1 (see the help on "Branches to build") cover this case, or at least provide a path by which this case can be covered (through refs/remotes/wildcard)?

If not, does the "regex" syntax (regex is defined by starting the matching string with a leading colon character) meet this need?

@MarkEWaite
Copy link
Contributor

After no comment in two months, I'm closing this pull request.

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