简体   繁体   English

为什么构建触发器抱怨 Webhooks 丢失

[英]Why is the Build trigger complaining about Webhooks missing

It is time we enabled the Continuous Integration of the build pipeline, so when I went to do just that, i am seeing something strange...现在是我们启用构建管道的持续集成的时候了,所以当我这样做时,我看到了一些奇怪的东西......

The trigger appears to be enabled?触发器似乎已启用? yet theres a message suggesting webhooks are missing to the repo and need to be restored.然而,有一条消息表明 repo 中缺少 webhook,需要恢复。 When i click restore, it fails!当我点击恢复时,它失败了!

The remote repository's webhooks are missing or incorrect.远程存储库的 webhook 丢失或不正确。

休息

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

I asked the admin of the repo to try restoring it because i thought maybe this is a permissions issue, and even he got the error...我要求回购的管理员尝试恢复它,因为我认为这可能是一个权限问题,甚至他也得到了错误......

This is what the repository settings page shows for both myself and the repo developer/admin...这是存储库设置页面为我自己和存储库开发人员/管理员显示的内容......

回购页面

Do we have to add a webhook manually on bitbucket?我们是否必须在 bitbucket 上手动添加 webhook?

After debugging the issue further with the developer, it appears the app password we created in bitbucket may not have had the "Webhooks" option enabled.在与开发人员进一步调试问题后,我们在 bitbucket 中创建的应用密码似乎没有启用“Webhooks”选项。

Unfortunately, we cannot edit app passwords in Bitbucket, which is a bad constraint but whatever.不幸的是,我们无法在 Bitbucket 中编辑应用程序密码,这是一个不好的约束,但无论如何。 We ended up just creating a new app password , and enabled Webhooks permissions this time, then i updated the service connection with this new app password, and wala, it worked!我们最终只是创建了一个新的应用程序密码,这次启用了 Webhooks 权限,然后我用这个新的应用程序密码更新了服务连接,哇,它成功了!

应用程序通行证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AzureDev Ops Webhooks 是否有任何构建开始类型的触发器? - Is there any build started type of trigger for AzureDev Ops Webhooks? 当文档中的有效参数是 terraform 时,为什么会抱怨不期望参数? - Why is terraform complaining about an argument not being expected when it is a valid argument in the documentation? 为什么缺少TFS构建步骤扩展图标? - Why TFS Build Step Extension Icon Is Missing? 当构建工件上的“拉取请求触发器”被禁用时,为什么构建是由于 PR(构建验证策略)触发了发布? - When the “pull request trigger” on the build artifact is disabled, Why is build due to a PR (build validation policy) triggering a release? 使用故障单编号触发构建 - Trigger Build with Ticket Number 为什么构建草稿不会合并/通知草案发布中的合并冲突? - Why do build drafts not merge/notify about merge conflicts on draft publishing? Azure DevOps Webhooks(服务挂钩)缺少描述或重现步骤等字段 - Azure DevOps Webhooks (Service Hooks) Missing Fields like Description or Repro Steps 为什么 C:\Program Files\dotnet\sdk\3.1.201 中缺少 msbuild.exe? 导致 AzureDevOps 构建步骤失败 - Why is msbuild.exe missing in C:\Program Files\dotnet\sdk\3.1.201? Causing AzureDevOps build step to fail Powershell触发Azure DevOps中的构建 - Powershell to trigger a build in Azure DevOps 从构建队列触发发布 - Trigger a release from a build queue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM