Jenkins - Bitbucket Pull 请求生成器未按预期工作
Jenkins - Bitbucket Pull request builder is not working as expected
我正在尝试为我的项目配置 Jenkins。我的用例是每当有人提出 PR 时,构建应该自动触发。所以,在谷歌搜索后我找到了这个插件 Bitbucket Pull Request Builder
并且我在 Jenkins 中安装了这个插件,基于 this reference,我添加了配置。
但问题是,Jenkins 总是试图在不同的位置搜索 PR,即 https://bitbucket.org/api/2.0/repositories/rest/api/1.0/projects/m-suganthan/repos/test-jenkins/pull-requests/
,而 PR 在这个位置,https://bitbucket.org/api/2.0/repositories/m-suganthan/test-jenkins/pullrequests
。
如何告诉 Jenkins 在正确的位置找到 PR?
BitBucket URL 服务器(在 PR 90 中介绍)帮助应该是:
Fill that with your Bitbucket server URL if you do no use bitbucket.org service.
Example:
http://localhost:7990/rest/api/2.0/projects/WORK
确保在您的案例中引用完整的 URL 存储库。
此外,请检查您的凭据:基本身份验证用户名应该是登录名,而不是电子邮件。
我已经使用这个插件解决了我的问题 Bitbucket Push And Pull Request Plugin。
目前,这就是我的 Jenkins 配置的样子。
更新:如果您在 jenkins 中安装了 Bitbucket-Plugin,那么 Bitbucket 推送和拉取请求插件将无法工作。因为 header x-event-key=pullrequest:created
在以前的插件中没有处理。
我正在尝试为我的项目配置 Jenkins。我的用例是每当有人提出 PR 时,构建应该自动触发。所以,在谷歌搜索后我找到了这个插件 Bitbucket Pull Request Builder
并且我在 Jenkins 中安装了这个插件,基于 this reference,我添加了配置。
但问题是,Jenkins 总是试图在不同的位置搜索 PR,即 https://bitbucket.org/api/2.0/repositories/rest/api/1.0/projects/m-suganthan/repos/test-jenkins/pull-requests/
,而 PR 在这个位置,https://bitbucket.org/api/2.0/repositories/m-suganthan/test-jenkins/pullrequests
。
如何告诉 Jenkins 在正确的位置找到 PR?
BitBucket URL 服务器(在 PR 90 中介绍)帮助应该是:
Fill that with your Bitbucket server URL if you do no use bitbucket.org service.
Example:
http://localhost:7990/rest/api/2.0/projects/WORK
确保在您的案例中引用完整的 URL 存储库。
此外,请检查您的凭据:基本身份验证用户名应该是登录名,而不是电子邮件。
我已经使用这个插件解决了我的问题 Bitbucket Push And Pull Request Plugin。 目前,这就是我的 Jenkins 配置的样子。
更新:如果您在 jenkins 中安装了 Bitbucket-Plugin,那么 Bitbucket 推送和拉取请求插件将无法工作。因为 header x-event-key=pullrequest:created
在以前的插件中没有处理。