DevOps管道未能从Bitbucket触发

huangapple go评论68阅读模式
英文:

DevOps Pipeline Not Triggering from Bitbucket

问题

  1. 我已经尝试设置一个DevOps流水线来从BitBucket触发,但它不会自动触发。手动运行正常。据我所知,一切都设置正确,我不确定如何进一步调试。
  2. 我的流水线yaml已设置为在多个分支上触发。
  3. 我是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.

  1. My pipeline is not overriding the trigger
    DevOps管道未能从Bitbucket触发

  2. My pipeline yaml is set to trigger on multiple branches
    DevOps管道未能从Bitbucket触发

  3. I'm an admin for the bitbucket repo and I can see a webhook is added when I create the pipeline
    DevOps管道未能从Bitbucket触发

DevOps管道未能从Bitbucket触发

The request history from bitbucket shows that ADO returns a 200 call after a push
DevOps管道未能从Bitbucket触发

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
DevOps管道未能从Bitbucket触发

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

DevOps管道未能从Bitbucket触发

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

huangapple
  • 本文由 发表于 2023年2月17日 23:45:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/75486427.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定