英文:
DevOps Pipeline Not Triggering from Bitbucket
问题
- 我已经尝试设置一个DevOps流水线来从BitBucket触发,但它不会自动触发。手动运行正常。据我所知,一切都设置正确,我不确定如何进一步调试。
- 我的流水线yaml已设置为在多个分支上触发。
- 我是Bitbucket仓库的管理员,当我创建流水线时,我可以看到已添加Webhook。
Bitbucket的请求历史显示ADO在推送后返回200调用,但在ADO中没有触发任何操作。
我在ADO中注意到了一些奇怪的地方,不确定它们是否相关。当我编辑流水线并查看"触发器->YAML"时,它显示"某些设置需要关注",尽管没有任何设置显示需要关注。
此外,如果我转到我的DevOps项目设置->服务连接并选择BitBucket连接,然后尝试授权,会出现有关刷新令牌的错误。
我在ADO中找不到进一步调试的地方。有任何想法吗?
英文:
I've tried to setup a DevOps pipeline to trigger from BitBucket but it won't auto-trigger. Running it manually works fine. As far as I can tell, everything is setup correctly and I'm not sure how to debug further.
The request history from bitbucket shows that ADO returns a 200 call after a push
But nothing is triggered in ADO.
There's a few oddities I've noticed in ADO, not sure if they are related. When I edit the pipeline and look at Triggers->YAML it says "Some settings need attention" although none of the settings are showing that they need attention
Also, if I go to my Devops Project Settings->Service Connections and select the BitBucket connection, Edit and try to Authorize I get an error about a refresh token
I don't see anywhere to debug further in ADO. Any ideas?
答案1
得分: 1
触发器的规范不正确。
trigger:
- dev
test
master
应该是
trigger:
- dev
- test
- master
此外,PR(拉取请求)部分当前设计为在名为none
的分支上触发:
pr:
- none
禁用PR验证的正确语法应该是
pr: none
英文:
The triggers are incorrectly specified.
trigger:
- dev
test
master
should be
trigger:
- dev
- test
- master
Also, the PR section is currently designed to trigger on a branch named none
:
pr:
- none
The correct syntax to disable PR validation would be
pr: none
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论