Search code examples
gitbitbucketteamcity-9.0

TeamCity with BitBucket Cloud Commit Status Publisher. 404 Errors


I'm having problems getting the commit status publisher to work.

Details:

  • TeamCity 9.1 Commit Status Publisher Plugin version: snapshot-20160523141816 Bitbucket Cloud
  • git repository type on bitbucket.org

VCS Settings:

  • Configured to use the private key auth (w/ uploaded key)
  • Multiple branches configured.
  • Not using VCS Labeling
  • No PUSH URL specified (should be failing back to FETCH URL, right?)

Commit Status Publisher Settings:

  • I've experimented with these settings, neither email addresses nor usernames work.

Commit Status Publisher Configuration Dialog

But whenever something should publish a commit message, I get this pop up in the TeamCity build configuration list:

Publish status error in build #730 {build id=68270, buildTypeId=Project_BuildConfigurationName}: Cannot publish status to Bitbucket Cloud for VCS root Rootname: response code: 404, reason: NOT FOUND, message: 'Resource not found'

One odd setup thing is that I'm using the ssh://[email protected]:443 address to get around some outbound firewall restrictions, though I doubt that would be causing the problem.

Do I need to have the VCS configured with a service account user instead of an SSH Deployment Key? I would rather not do that, if possible.


Solution

  • Commit status publisher parses the url you use incorrectly. As a workaround switch to the standard ssh url [email protected]:owner/repo.git.