为什么构建触发器抱怨缺少 Webhooks

Why is the Build trigger complaining about Webhooks missing

是时候启用构建管道的持续集成了,所以当我这样做时,我看到了一些奇怪的东西...

触发器似乎已启用?然而,有一条消息表明回购协议中缺少网络钩子,需要恢复。当我点击还原时,它失败了!

The remote repository’s webhooks are missing or incorrect.

An error occurred while restoring the trigger’s webhook: Could not recreate the subscription. An error was encountered while creating the existing subscription: Unable to configure a service on the selected Bitbucket repository. Bitbucket returned the error 'Your credentials lack one or more required privilege scopes.'.

我让回购的管理员尝试恢复它,因为我认为这可能是一个权限问题,甚至他也得到了错误...

这是存储库设置页面为我自己和存储库显示的内容 developer/admin...

我们必须在 bitbucket 上手动添加 webhook 吗?

在与开发人员进一步调试问题后,我们在 bitbucket 中创建的应用密码似乎没有启用“Webhooks”选项。

不幸的是,我们无法在 Bitbucket 中编辑应用程序密码,这是一个糟糕的限制,但无论如何。 我们最终只是 creating a new app password,这次启用了 Webhooks 权限,然后我用这个新的应用程序密码更新了服务连接,哇,成功了!