Run build when bitbucket server pull request created
Hi,
I'm struggeling with auto builds when a pull request on bitbucket server is opened.
My VCS Settings:
Default branch: refs/heads/develop
Branch specificaton: +:refs/pull-requests/*/from (I also tried it without +:)
Branch filter: +:*
Triggers:
Default VCS Trigger with branch filter +:*
Build Features:
Pull Requests
Commit status publisher
When I'm creating a pull request I'll see the the branch listes as "non.built" branch in TeamCity, for example:
pull-requests/15
Am I missing anything here?
I#m using TeamCity Professional 2020.2.1 (build 85633)
Thanks and kind regards
Orange
Please sign in to leave a comment.
I got it building by removing the branch specificaton from my VCS root.
I guess the Pull Request buildfeature takes care of adding it?! If so it looks like a bug to me that it's not working when I'm manually adding the branch specification.
I've now got the issue that the Commit Status Publisher doesn't seem to work with pull requests (works fine with a manuel run though).
And I'd have expected that a deleted or merged PR would remove the build branch from TeamCity.
Is there a way to resolve the two remaining issues? Is all this documented somewhere?