(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.
Cheers,
Imran Khan
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
Check out the short videos on how to setup and use this plugin with Jenkins pipeline and multibranch pipeline and follow the below steps:
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 Khan
Product Manager - Bitbucket Server
1 accepted answer
72 comments