Git Plugin 4.11.4+ requires notifyCommit token when notifying jenkins of changes. Token needs to be generated on Jenkins and provided on “Jenkins Servers“ configuration page on Bitbucket.
How to generate a token:
On Jenkins go to “Manage Jenkins” → “Configure Global Security“ page
Find “Git plugin notifyCommit access tokens“ section
Click “Add new access token“
Enter token name and click “Generate“
Token will be generated that need to be copied into Bitbucket
How to provide a token for Bitbucket:
On Bitbucket configuration window, go to “Jenkins Servers“ page
If you have credentials for Jenkins instance configured already, click “Edit“. If you don’t, click “Add new instance“
Enter “Jenkins Base“ - Jenkins base url and generated token into “notifyCommit access token (for GIT plugin only)“ field
Save instance