1

Since bitbucket 2020.1 there is integration for BitBucket Cloud in TeamCity.

In my project I want to achieve situation:

  • there is a hotfix / release branch
  • in BB I create pull request from that branch to master

I want to have automatic build in TC after creating this PR. I tried this build feature (pull request) but after creating PR in BB nothing happens in TC.

I found this instruction but it still doesn't want to cooperate.

Ivan Starostin
  • 8,798
  • 5
  • 21
  • 39
tomasz.myszka
  • 101
  • 1
  • 5
  • i feel your pain bro, same for me. i see pending build with PR in TC but trigger wont work. Since Bitbucket Cloud does not create dedicated branches for pull requests, this build feature monitors directly source branches in a source repository (forks are not supported). + This option will not work if the VCS root uses an SSH fetch URL or employs anonymous authentication. – James M Feb 11 '21 at 08:52
  • From the instruction: `build configuration must have a VCS trigger enabled` - do you have one? – Ivan Starostin Mar 08 '21 at 14:10

1 Answers1

1

From the link you've posted, it seems you've setup TeamCity to know about BitBucket. However you need to also let BitBucket trigger TeamCity https://confluence.jetbrains.com/display/TCD18/Configuring+VCS+Post-Commit+Hooks+for+TeamCity?_ga=2.130253711.1405663514.1613160148-1185856109.1612616927

Peter Brooks
  • 1,170
  • 9
  • 23