gpt4 book ai didi

jenkins - BitBucket Team Multibranch 管道作业忽略 PR

转载 作者:行者123 更新时间:2023-12-02 01:20:08 27 4
gpt4 key购买 nike

我正在使用 Bitbucket Branch Source Plugin 为 Bitbucket 中特定项目目录下的每个 repo 自动配置多分支管道作业。一个 repo 包含一个有效的 Jenkinsfile。该 repo 的主分支构建和部署良好。但是,并未构建该 repo 的拉取请求。我看到以下日志:

Connecting to <URL> using <credentials>
Looking up repositories of team <Project>
Proposing test-project
Connecting to <URL> using <credentials>
Looking up <Project>/test-project for branches
Checking branch master from <Project>/test-project
Met criteria
Looking up <Project>/test-project for pull requests
Checking PR from ~<user>/test-project and branch feature/thing
Does not meet criteria

拉取请求的指定分支确实包含Jenkinsfile,所以我不明白为什么它说不符合条件。有什么建议吗?

“Automatic branch project triggering”选项设置为默认的.*

我正在使用以下 Jenkins 插件:

Bitbucket Branch Source Plugin 1.8
Branch API Plugin 1.10.2
GIT Plugin: 2.4.0
Pipeline 2.4
Pipeline: Multibranch 2.8
Pipeline: SCM Step 2.2
SCM API Plugin 1.3
... others omitted for brevity

最佳答案

好吧,我觉得自己很蠢。

Jenkins 没有对 <user>'s 的读取权限包含 PR 分支的 repo 的分支。

当您创建 PR 时,所有有权访问接收 PR 的存储库的用户都可以毫无问题地查看它,因此这可能是 Bitbucket Server 本身的问题(我在 4.2.0 上)不允许这些一旦该分支被包含在 PR 中,用户就可以远程读取该分支。

关于jenkins - BitBucket Team Multibranch 管道作业忽略 PR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40621043/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com