Access token requirements for Git plugin 4.11.4+
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 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.
Provide a token for Bitbucket
Click Jenkins Servers on the Bitbucket configuration window.
If you already have credentials for the Jenkins instance configured, click Edit. If not, click Add new instance.
Enter the Jenkins base URL in the Jenkins Base field and the generated token into the notifyCommit access token (for GIT plugin only) field.
Click Save instance.