代码之家  ›  专栏  ›  技术社区  ›  Suganthan Madhavan Pillai

Jenkins-Bitbucket Pull请求生成器未按预期工作

  •  1
  • Suganthan Madhavan Pillai  · 技术社区  · 7 年前

    我正在尝试为我的项目配置Jenkins。我的用例是每当有人提出PR时,构建应该自动触发。所以,在谷歌搜索之后,我找到了这个插件 Bitbucket Pull Request Builder 我在Jenkins安装了插件,基于 this reference ,我添加了配置。

    enter image description here

    https://bitbucket.org/api/2.0/repositories/rest/api/1.0/projects/m-suganthan/repos/test-jenkins/pull-requests/ https://bitbucket.org/api/2.0/repositories/m-suganthan/test-jenkins/pullrequests .

    2 回复  |  直到 7 年前
        1
  •  1
  •   Community Mohan Dere    6 年前

    PR 90 )帮助内容应为:

    如果您不使用Bitbucket.org服务,请使用您的Bitbucket服务器URL填充该URL。

    例子:

    http://localhost:7990/rest/api/2.0/projects/WORK
    

    确保在您的案例中引用完整的URL存储库。

        2
  •  1
  •   Suganthan Madhavan Pillai    7 年前

    我已经用这个插件解决了我的问题 Bitbucket Push And Pull Request Plugin . 目前,我的Jenkins配置就是这样的。

    使现代化 :如果你有 Bitbucket-Plugin 安装在jenkins中,则Bitbucket推拉请求插件将无法工作。因为标题 x-event-key=pullrequest:created

    enter image description here