Git Plugin 4.11.4+ requires the notifyCommit
token when notifying Jenkins of any changes. Generate the token in Jenkins and enter it on the Bitbucket Jenkins Servers configuration page.
Attempting to use Webhook to Jenkins with Git plugin 4.11.4 or higher without adding the notifyCommit
token to Bitbucket results in an Acess token is required
error. a Git Plugin 4.11.4+ requires access token for Jenkins notification
message.
...
Generate a token
From your Jenkins instance, go to Manage Jenkins → Configure Global Security.
Find the Git plugin notifyCommit access tokens section.
Click Add new access token.
Enter the token name and click Generate.
Jenkins generates the
notifyCommit
token required in the Bitbucket Jenkins Base dialog.
...