To trigger both Pipeline 1 and Pipeline 2 after merging PR into master branch, we will need to ensure “Build Pull Requests” is enabled in your pipeline settings.
Could you confirm if it is enabled or give it a try by enabling it?
By following these settings, Pipeline 1 will be triggered only by pushes to the branch, while Pipeline 2 will be triggered only by Pull Request, filtered by the target branch.
Hi @ivanna , the pipeline should only be triggered when pushing commits to master branch. It shouldn’t be triggered when pushing commits to other branches
Should we leave the Branch Filter Pattern in Pipeline 1 empty?
At the risk of adding even more input to this, I’m wondering if these require the same webhook.
Currently the two pipelines use different webhooks (found in the Settings for the pipelines). Using the same webhook would allow single events to push to both pipelines and you could then use the settings for the individual pipelines to filter builds accordingly.
Hello, @son.propte !
We have discussed your issue internally and at the moment, we need more information from you.
For the events like the one you’ve mentioned - “pushed a commit to master branch, but only Pipeline 2 is triggered” - could you please send us the commit SHA for the events that didn’t trigger the expected builds on Buildlkite’s side to support@buildkite.com? That would help us with troubleshooting.