【问题标题】:BitBucket Team Multibranch pipeline job is ignoring PRsBitBucket Team Multibranch 管道作业忽略 PR
【发布时间】:2017-03-29 23:55:27
【问题描述】:

我正在使用 Bitbucket 分支源插件为 Bitbucket 中特定项目目录下的每个 repo 自动配置多分支管道作业。一个 repo 包含一个有效的 Jenkinsfile。该存储库的主分支构建和部署良好。但是,尚未构建该 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,所以我不明白为什么它说不符合条件。有什么建议吗?

“自动分支项目触发”选项设置为默认.*

我在 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 jenkins-pipeline multibranch-pipeline


    【解决方案1】:

    好吧,我觉得自己很笨。

    Jenkins 没有读取包含 PR 分支的 repo 的 &lt;user&gt;'s fork 的权限。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-03-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-26
      相关资源
      最近更新 更多