通知从Jenkins到Bitbucket Server的构建状态

时间:2016-09-09 21:47:23

标签: jenkins bitbucket-server

我们在内部安装了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

5 个答案:

答案 0 :(得分:2)

您可能会使用stash plugin作为BitBucket is based on 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.

答案 1 :(得分:0)

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

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

enter image description here

答案 2 :(得分:0)

最新版本的Stash Notifier插件现在可与Job DSL一起使用

答案 3 :(得分:0)

可以从Jenkins的Bitbucket server integration plugin中无缝发布构建状态。该插件由Atlassian创建和维护。

但是,您必须将Bitbucket服务器从v4.9.1升级到至少v5.6。最好是v7.4 +,以便在Bitbucket Server中使用新的build functionality

答案 4 :(得分:0)

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

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