9

我们已经在本地安装了 Jenkins v2.7.3 和 Bitbucket Server v4.9.1,并希望将构建状态作为通知从 Jenkins 发送到 Bitbucket Server。

到目前为止,我只找到了适用于 Bitbucket Cloud 的解决方案(1 和 2),但没有找到适用于 Bitbucket Server 的解决方案。关于如何实现这一点的任何提示?

  1. https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+Cloud+Build+Status+Notifier+Plugin
  2. https://wiki.jenkins-ci.org/display/JENKINS/Bitbucket+OAuth+Plugin
4

5 回答 5

4

您可能会从stash 插件中获得一些用途,因为BitBucket 是基于 Stash code 的

Atlassian 不得不说:

We have unified our Git products under the Bitbucket name. With
Bitbucket, now you have a range of options that can be adopted by teams
of all sizes and requirements: Bitbucket Cloud (previously known as
Bitbucket), Bitbucket Server (previously known as Stash) and Bitbucket
Data Center (previously known as Stash Data Center). 

关于插件:

This plugin notifies an Atlassian Stash instance of Jenkins builds in
progress and of their results. The build results will show up in the
commit list in Stash or in a Stash pull request and provide immediate
and easy to scan feedback about a commit. It is possible to navigate 
from build result information in Stash directly to the build in 
question. The plugin can be configured on a per-job basis, globally 
for all Jobs or both to minimize the configuration overhead.
于 2016-09-10T00:09:05.673 回答
0

您需要 Stash Pull Request Builder Plugin 这个 Jenkins 插件从 Atlassian Stash 服务器构建拉取请求,并将测试结果作为评论报告。这个插件的灵感来自 GitHub 和 BitBucket 拉取请求构建器插件

https://plugins.jenkins.io/stash-pullrequest-builder

在此处输入图像描述

于 2017-11-16T19:56:25.073 回答
0

最新版本的 Stash Notifier 插件现在适用于 Job DSL

于 2019-02-12T23:11:39.357 回答
0

Jenkins 的Bitbucket Server Notifier插件为我完成了这项工作(Jenkins 与 Bitbucket Server 的集成 - 以前称为 Stash)。

https://plugins.jenkins.io/stashNotifier/#documentation 用法:https ://github.com/jenkinsci/stashnotifier-plugin/blob/release/1.x/readme.md

于 2021-04-13T00:20:32.737 回答
0

构建状态可以从 Jenkins 的Bitbucket 服务器集成插件无缝发布。该插件由 Atlassian 创建和维护。

但是,您必须将 Bitbucket 服务器从 v4.9.1 升级到至少 v5.6。最好到 v7.4+ 以利用Bitbucket Server中的新构建功能。

于 2020-07-14T04:00:28.123 回答