具有BitBucket云提交状态发布者的TeamCity。 404错误 [英] TeamCity with BitBucket Cloud Commit Status Publisher. 404 Errors

查看:144
本文介绍了具有BitBucket云提交状态发布者的TeamCity。 404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



详细信息:


  • TeamCity 9.1提交状态发布者插件版本:
    snapshot-20160523141816 Bitbucket Cloud

  • bitbucket.org上的git存储库类型


  • VCS设置:


    • 配置为使用私钥auth( w /上传密钥)

    • 配置了多个分支。

    • 不使用VCS标签

    • 没有指定PUSH URL(应该回退到FETCH URL,对吧?)


    提交状态发布商设置:




    • 我试验了这些设置,电子邮件地址和
      用户名均无效。





    但是无论何时应该发布一条提交消息,我都会在TeamCity构建配置列表中弹出:


    在构建#730中发布状态错误{build id = 68270,
    buildTypeId = Project_BuildConfigurationName}:无法将状态发布到
    Bitbucket Cloud for VCS根Rootname:响应代码:404,原因:NOT
    FOUND,留言:'找不到资源'

    一个奇怪的设置是tha t我使用ssh://git@altssh.bitbucket.org:443地址来解决一些出站防火墙限制,但我怀疑这会导致问题。



    我是否需要使用服务帐户用户配置VCS,而不是使用SSH部署密钥?如果可能的话,我宁愿不这样做。

//youtrack.jetbrains.com/issue/TW-46969rel =nofollow>错误地。作为解决方法切换到标准的ssh url git@bitbucket.org:owner / repo.git。


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.

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://git@altssh.bitbucket.org: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.

解决方案

Commit status publisher parses the url you use incorrectly. As a workaround switch to the standard ssh url git@bitbucket.org:owner/repo.git.

这篇关于具有BitBucket云提交状态发布者的TeamCity。 404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆