VSTS\Azure-DevOps: Enabling Continuous Integration on pipeline with source from Bitbucket fails with error

假装没事ソ 提交于 2020-04-12 17:08:17

问题


Regards,

Your help will be appreciated.

I have created a pipeline in VSTS\Azure-DevOps. It gets its sources from a repository in Bitbucket. Queueing a build works fine. It builds and the tests succeed.

Now I want a build to run on every commit to the repository on Bitbucket. However, when I edit the pipeline and in the Triggers tab enable 'Continuous Integration' and click 'Save' I get the following error:

Unable to configure a service on the selected Bitbucket repository. Bitbucket returned the error 'Forbidden: '.

I am confused that I get 'Forbidden', while getting the source-code already works.

What is it that I am doing wrong? Is there something I must configure in VSTS\Azure-DevOps or in Bitbucket?


回答1:


Answering my own question:

It appeared that in Bitbucket I only had the rights of 'Writer' for the Repository. When we changed it to 'Administrator' enabling Continuous Integration worked and we verified that committing a code change triggered the build.



来源:https://stackoverflow.com/questions/53596735/vsts-azure-devops-enabling-continuous-integration-on-pipeline-with-source-from

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