[英]Notify build status from Jenkins to Bitbucket Server
我们已经在本地安装了 Jenkins v2.7.3 和 Bitbucket Server v4.9.1,并希望将构建状态作为通知从 Jenkins 发送到 Bitbucket Server。
到目前为止,我只找到了 Bitbucket Cloud 的解决方案(1 和 2),但没有找到 Bitbucket Server 的解决方案。 关于如何做到这一点的任何提示?
您可能会从stash 插件中获得一些用途,因为BitBucket 基于 Stash 代码。
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.
您需要 Stash Pull Request Builder Plugin 这个 Jenkins 插件从 Atlassian Stash 服务器构建拉取请求,并将测试结果报告为评论。 这个插件的灵感来自 GitHub 和 BitBucket 拉取请求构建器插件
最新版本的 Stash Notifier 插件现在适用于 Job DSL
构建状态可以从 Jenkins 的Bitbucket 服务器集成插件无缝发布。 该插件由 Atlassian 创建和维护。
但是,您必须将 Bitbucket 服务器从 v4.9.1 升级到至少 v5.6。 最好使用 v7.4+ 以利用 Bitbucket Server 中的新构建功能。
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.