...
This document does not include detailed instructions regarding the initial setup of your Jenkins or Bitbucket instances. For more information regarding these topics, refer to Bitbucket and Jenkins documentation.
This documentation uses screenshots taken from Jenkins version 2.332.2 and Bitbucket version 7.20.0.
Before you begin
Before you begin configuring your Jenkins instance, confirm the following actions have been performed:
...
Log into your Bitbucket instance as an Administrator.
Click the Administration icon in the top right corner to open the Administration page.
Under Add-ons, click Jenkins Servers.
Click Add New Instance.
Enter the Jenkins instance URL in the Jenkins Base field and the , your Jenkins Username and Password, and if you are using Git plugin version 4.
11.4 or higher, the
notifyCommit
access token. See Access token requirements for Git plugin 4.11.4+ on how to generate the token. When using an earlier version of the Git plugin, thenotifyCommit
token is not required.Click Save Instance.
You can also access this page through Bitbucket Administration (Administration > Manage Apps > Webhook to Jenkins for Bitbucket > Configure).
...