(Update 31/Aug/2020 : We added support for using ssh credentials for cloning in version 2.1)
(Update 02/Mar/2020 : We added support for Multibranch pipeline jobs in version 1.1.0)
(Update 28/Oct/2019 : We released version 1.0 of the plugin and it is out of beta)
We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that it is now available. It lets you seamlessly configure a Jenkins job to clone/fetch from Bitbucket Server, removing the need for multiple plugins/apps to achieve the same workflow. To try it out you need Bitbucket Server 5.5+ and Jenkins 2.162+
We’re keen to hear your feedback, so comment with questions, feedback, and feature requests and we’ll get back to you. If you’re interested you can also contribute to our plugin. Please raise any bugs at https://issues.jenkins-ci.org with atlassian-bitbucket-server-integration-plugin as the component.
Product Manager - Bitbucket Server
Bitbucket Server Integration with Jenkins CI - plugin features
supports Jenkins pipeline, Multibranch Pipeline and freestyle job type
provides a simple way for you to connect your Jenkins CI to Bitbucket Server instance
securely manage credentials inside Jenkins for cloning from Bitbucket Server
automatically create a webhook inside a Bitbucket repo when a Jenkins job is saved
select projects and repositories inside a Jenkins job through a dropdown
automatically send build statuses to commits and pull requests in Bitbucket Server
provides an option to clone from Bitbucket Smart Mirrors
supports both - ssh and https protocols for cloning
Installing the plugin
In Jenkins go to Jenkins > Manage Jenkins > Manage Plugins
Click the Available tab
Search for Bitbucket Server Integration
Select it from the results and Click Install without restart
Adding a linked Bitbucket Server instance
After installing the plugin you need to configure at least one Bitbucket Server instance. To do this:
In Jenkins go to Jenkins > Manage Jenkins > Configure System
Under Bitbucket Server plugin click Add a Bitbucket instance
Enter the instance details
Configuring the Jenkins job
When a new push happens the build will be triggered. You can then check the build info in Jenkins to see the changeset.
Imran KhanAtlassian Team
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events