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.
The reason is that you don’t have the permission to create webhook, using another account that have enough permission instead.
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
