Is Continous Integration on TFS using Bitbucket possible?

前提是你 提交于 2019-12-01 16:29:59

问题


I'm trying to set up a CI build on TFS Online. I'm pretty much used to it using the tfs git repository. The actual team I'm working with however uses Bitbucket. So I started by setting up a build linked to Bitbucket, which worked flawlessly.

However, activating CI seemed to trigger an error from Bitbucket when I save my settings : "Bitbucket returned the error : 'Forbidden'".

I found 2 possible solutions :

  • Use the generic "git remote repository" with which I struggle a bit and it seems strange that I have to set up different connections just for CI.
  • Use a third party app (i.e. Zapier) to trigger the build. But honestly, why should I add a new layer of maintenance ?

Any help or suggestion would be welcome.

Thank you !

Quick follow up on this issue : I contacted Microsoft about it and it seems CI does work on Bitbucket repositories if they are public. Support will escalade and we'll see what's the source of the problem.


回答1:


The reason is that you don’t have the permission to create webhook, using another account that have enough permission instead.




回答2:


As said by starain-MSFT, I did not have the rights to create a web hook on Bitbucket. Check if you can see the "settings" on the repository. If not, that's the reason. Just make sure you have enough rights.



来源:https://stackoverflow.com/questions/46887230/is-continous-integration-on-tfs-using-bitbucket-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!