question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pull Request Building Behaviour

See original GitHub issue

Your checklist for this issue

  • Jenkins version - 2.263.1

  • Plugin version - 2.9.5

  • Bitbucket cloud - yes

  • Bitbucket server and version - cloud subscription

Description

We are Using Multibranch Pipelines configured with this plugin. Multibranch pipeline config (relevant part): “Discover pull requests from origin” Enabled with strategy “Merging the pull request with the current target branch revision” “Filter by name with regular expression” behavior enabled with the value “master”

Result: all updates on master branch are received via webhook and trigger a build no PRs get discovered and built

Expected: all updates on master branch are received via webhook and trigger a build all PRs with target branch master are received via webhook and trigger a build

Steps attempted: From some older posts regarding similar issues, there are suggestions ou there to include “PR-.*” on the value of “Filter by name with regular expression” behavior; although this triggers PR builds, all PRs trigger a build with no relation to target branch of the PR

Desired Functionality: Build on every update on master and every PR that has master as a target branch Is this possible within the configuration of this plugin, using bitbucket web?

Additional INFO: webhook setup: image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
stefangrcommented, Jan 12, 2021

The SCM Filter Branch PR plugin is exactly what you need.

It works nice in combination with the bitbucket branch source plugin as well.

0reactions
stale[bot]commented, Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building Pull Requests - Travis CI Docs
Travis CI builds a pull request when it is first opened, and whenever commits are added to the pull request. Rather than build...
Read more >
Check build status in a pull request | Bitbucket Cloud
Viewing build statuses in pull requests. On the pull request under Commits, you'll see build statuses for each commit in the Builds column....
Read more >
Preview Documentation from Pull Requests
We create and build a new version when a pull request is opened, and rebuild the version whenever a new commit is pushed....
Read more >
Pull Request Guidelines - Creative Commons Open Source
If you're not familiar with pull requests, please read this GitHub ... Read and follow the contributing guidelines and code of conduct for...
Read more >
Question on behaviour of workflow-multibranch-plugin when ...
environment the build of pull requests runs w/o problems. This job was now moved to a Windows based Jenkins master and we see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found