Notify build status from Jenkins to Bitbucket Server
Asked Answered
C

5

10

We have installed Jenkins v2.7.3 and Bitbucket Server v4.9.1 on premise and would like to send build status as notifications from Jenkins to Bitbucket Server.

So far I have only found solutions (1 and 2) for Bitbucket Cloud, but nothing for Bitbucket Server. Any tip on how to make this happen?

  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
Cardiac answered 9/9, 2016 at 21:47 Comment(2)
So were you able to make it work?Mckibben
Could you use Bitbucket's REST API from Jenkins as part of a post build task? developer.atlassian.com/bitbucket/server/docs/latest/how-tos/…Gregor
R
5

You might get some use out of the stash plugin as BitBucket is based on Stash code.

What Atlassian had to say:

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). 

About the plugin:

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.
Rowenarowland answered 10/9, 2016 at 0:9 Comment(0)
R
1

Build status can be posted seamlessly from Jenkins's Bitbucket server integration plugin. This plugin is created and maintained by Atlassian.

However, You will have to upgrade the Bitbucket server from v4.9.1 to at least v5.6. Preferably to v7.4+ to make use of new build functionality within Bitbucket Server.

Renwick answered 14/7, 2020 at 4:0 Comment(0)
B
1

Bitbucket Server Notifier plugin for Jenkins did the job for me (Jenkins integration with Bitbucket Server - formerly known as Stash).

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

Binucleate answered 13/4, 2021 at 0:20 Comment(0)
L
0

You need Stash Pull Request Builder Plugin This Jenkins plugin builds pull requests from an Atlassian Stash server and will report the test results as a comment. This plugin was inspired by the GitHub & BitBucket pull request builder plugins

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

enter image description here

Larena answered 16/11, 2017 at 19:56 Comment(0)
K
0

The latest version of the Stash Notifier plugin now works with Job DSL

Kanara answered 12/2, 2019 at 23:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.