Configure TeamCity to trigger a build when a pull request is created in Bitbucket
I am using TeamCity
(version 2024.07.3
- self-hosted) along with Bitbucket
(version 8.19.4
- self-hosted). I would like to configure my TeamCity
CI pipeline to trigger automatically whenever a pull request is created in Bitbucket
. The CI pipeline should only trigger for pull requests targeting my main
branch.
I’ve attempted to set up triggers and build features in TeamCity
, but despite my efforts, the CI pipeline does not start as intended. It successfully triggers when I commit and push directly to the main
branch, but unfortunately, it fails to trigger upon the creation of a pull request. How can I configure my CI pipeline to automatically start running when a pull request is created in Bitbucket?
Please sign in to leave a comment.
What are your build configuration's Version Control Settings, VCS Root settings, VCS Trigger settings, and Pull Requests build feature settings?
You can share them as screenshots using https://uploads.jetbrains.com/ and share the upload ID.
Best regards,
Anton