VSTS \ Azure-DevOps:使用Bitbucket的源对管道启用持续集成失败,并显示错误 [英] VSTS\Azure-DevOps: Enabling Continuous Integration on pipeline with source from Bitbucket fails with error

查看:107
本文介绍了VSTS \ Azure-DevOps:使用Bitbucket的源对管道启用持续集成失败,并显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此致

您的帮助将不胜感激.

我已经在VSTS \ Azure-DevOps中创建了一个管道.它从Bitbucket中的存储库获取源代码.对构建进行排队可以正常工作.它建立并且测试成功.

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.

现在,我希望在Bitbucket上对存储库的每次提交上都可以运行构建.但是,当我编辑管道并在触发器"选项卡中启用连续集成"并单击保存"时,出现以下错误:

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:

无法在选定的Bitbucket存储库上配置服务. Bitbucket返回错误禁止:".

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.

我做错了什么?我必须在VSTS \ Azure-DevOps或Bitbucket中进行配置吗?

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

推荐答案

回答我自己的问题:

看来,在Bitbucket中,我仅拥有存储库的写作者"权限.当我们将其更改为管理员"时,启用了持续集成功能,并且我们验证了提交代码更改会触发构建.

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.

这篇关于VSTS \ Azure-DevOps:使用Bitbucket的源对管道启用持续集成失败,并显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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