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

Build triggered with no regards on BranchFilter parameter at least when used both source and destination as regex #142

Open
HamletHakobyan opened this issue Dec 14, 2017 · 3 comments
Labels

Comments

@HamletHakobyan
Copy link

Hi,

I have two build jobs on Jenkins which are configured almost identically.
The approachs should be the following:

  1. develop-issue-number <- develop-issue-number-impl -- should trigger build job to run unit tests
  2. develop <- develop-issue-number -- should trigger build job to create package for feature testing

For the first approach job configured as follows:

  1. In the SCM Branch Specifier set to */${sourceBranch}
  2. Additional behaviours/Merge before builds
  • Name of repository = origin
  • Branch to merge to = ${targetBranch}
  1. BPRB BranchesFilter set to s:r:^develop-issue-\d+-impl$ d:r:^develop-issue-\d+$

for the second approach job configuration is the same except of point 3
BPRB BranchesFilter set to s:r:^develop-issue-\d+$ d:r:^develop$

When I creating PR for any approaches to build triggers for both jobs.

Is this a bug or I'm doing something wrong.

@HamletHakobyan HamletHakobyan changed the title Build triggers with no regards on BranchFilter parameter at least when used both source and destination as regex Build triggered with no regards on BranchFilter parameter at least when used both source and destination as regex Dec 15, 2017
@HamletHakobyan
Copy link
Author

Hi there, someone can take a look on this?

@CodeMonk
Copy link
Collaborator

@HamletHakobyan Sorry for the delay. I have just volunteered to be a maintainer.

Does this sill occur? Do you have any updated information about the failure?

@endqwerty
Copy link

I'm seeing the same issue. When I have both b: and d: set like b:r:^JIRA-.*-test$ d:staging the regex is ignored. I think it might be doing or instead of and.

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

No branches or pull requests

3 participants