Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notify build status from Jenkins to Bitbucket Server

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
like image 629
Ismar Slomic Avatar asked Sep 09 '16 21:09

Ismar Slomic


1 Answers

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.
like image 78
KeepCalmAndCarryOn Avatar answered Oct 19 '22 20:10

KeepCalmAndCarryOn