簡體   English   中英

將構建狀態從 Jenkins 通知到 Bitbucket Server

[英]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 的解決方案。 關於如何做到這一點的任何提示?

  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

您可能會從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 拉取請求構建器插件

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

在此處輸入圖片說明

最新版本的 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM