7

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'".

enter image description here

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.

5
  • 1
    Which account you used to create Bitbucket service endpoint? Does he have the permission to create webhook in related Repository in Bitbucket? Try to create webhook manually with that account and check the result. Commented Oct 25, 2017 at 2:22
  • I think you nailed it. I cannot access "Settings" and therefore the webhook part on these repositories. I'll check with the admin and see how it goes. Commented Oct 26, 2017 at 7:12
  • 1
    That is the reason, feel free to post the result here after checking it. Commented Oct 26, 2017 at 7:52
  • Thank you very much ! That was indeed the reason. Commented Oct 26, 2017 at 7:57
  • Great! I post an answer, you can accept it. Commented Oct 26, 2017 at 8:00

2 Answers 2

5

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

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.