Temporary fix of Bitbucket webhook push to Jenkins failures.
Until jenkinsci#64 PR is merged and released officially.
- Download hpi file: https://github.com/LeeU1911/bitbucket-plugin/blob/generated-hpi/bitbucket.hpi
- Manually upload it to Jenkins: "Manage Jenkins" -> "Manage Plugins" -> "Advanced" tab -> Upload plugin
- Plugin should be uploaded and overwrite the previous version of Bitbucket plugin.
I personally faced this issue due to Nginx config restriction in Jenkins server. Fix it by:
- Adding this line
client_max_body_size 12M;
(bitbucket plugin hpi file size is 10.5M, hence12M
) underhttp
block in/etc/nginx/nginx.conf
file sudo service nginx reload
Read more: https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/