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

Plugin does not work with MultiBranch Pipelines #241

Open
jsj1027 opened this issue Nov 13, 2023 · 3 comments
Open

Plugin does not work with MultiBranch Pipelines #241

jsj1027 opened this issue Nov 13, 2023 · 3 comments

Comments

@jsj1027
Copy link

jsj1027 commented Nov 13, 2023

Current trigger setup:
triggers{
bitbucketpr(cron: '* * * * ',
credentialsId: '
',
repositoryOwner: '',
repositoryName: '
**',
branchesFilter: '
/${sourceBranch}
branchesFilterBySCMIncludes: true,
ciKey: 'jenkins.pr',
ciName: 'jenkins.pr',
checkDestinationCommit: false,
approveIfSuccess: true,
buildChronologically: true,
cancelOutdatedJobs: true,
commentTrigger: 'test this now')
}
Current Behavior:

Currently if you setup the a Jenkinsfile for a MBP(MutliBranchPipeline) with this plugin you get very weird behavior.

Lets say you have branches A,B,C with open PRs.
But only branch A has the Jenkinsfile for the MBP. This triggers a build on the MBP in the branch A section for builds A B and C.
The descriptions of the builds will be whatever the PR name was for each branch respectively.

Then lets say you do a scan of the MBP, this will trigger builds for A,B,C in the branch A section, with the same outcome as above. This can be stopped by turning off index triggers.

Now lets say you make branch D, with a open PR, but this one also has the new Jenkinsfile for the MBP.
This triggers a build in the branch A section rather than the branch D section.

Now if you run a build manually in the branch D section of the MBP this triggers builds for A,B,C,D.

Expected Behavior:

Pull Request triggers only fire off builds for their respective branches in only their respective sections.
Branch D triggers only create builds in the branch D section.
Only branch A triggers create builds in the branch A section.

Branch indexing triggers, if turned on, only fire off builds for the branches that have the Jenkinsfile in their respective sections.
Builds would happen in the branch A, and D sections respectively, but only for branches A and D.

Screenshots and further clarification available upon request.

@jsj1027
Copy link
Author

jsj1027 commented Nov 17, 2023

Anyone able to help with this?

@nickheyer
Copy link

Why do these clearly broken plugins exist in Jenkins....

@jsj1027
Copy link
Author

jsj1027 commented Nov 19, 2024 via email

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

No branches or pull requests

2 participants