The plugin helps in integrating the Bitbucket with Jenkins.
For the bitbucket plugin to work, Bitbucket Branch Source plugin has to be installed in the plugin.
Bitbucket Branch Source Installation steps
- Login to your Jenkins
- Select Manage Jenkins
- Click on Manage Plugins
- Search for Bitbucket Branch Source Plugin
- Install the plugin and restart the Jenkins after the installation
Configuring Bitbucket Branch Source plugin
- Login to your Jenkins
- Select Manage Jenkins
- Click on Configure Jenkins
- Under Bitbucket Endpoints, specify the Bitbucket Server URL
- Save the configuration
Installing Jenkins Hook for Bitbucket plugin
- Log into your Bitbucket instance as an admin.
- Click the admin dropdown and choose Add-ons. The Manage add-ons screen loads.
- Click Find new apps or Find new add-ons from the left-hand side of the page.
- Locate Jenkins Hook For BitBucket via search. Results include app versions compatible with your Bitbucket instance.
- Click Install to download and install your app.
- You’re all set!
Configuring the Hook in the repository
- Open settings page of a repository
- Click Jenkins Hook under Add-ons
- Specify the hook url, URL will be
<jenkins_url>/bitbucket-scmsource-hook/notify
- Select the events
- Save the settings
That's it!!