How did you create the credentials in Jenkins? How did you come up with the web-hook URL? Why you don't use BitBucket integration plug-in? What kind of permission does my bitbucket account needs to have to work properly with the integration?
Hi, Here's a very detailed guide on the step by step process - help.moveworkforward.com/BPW/how-to-integrate-bitbucket-server-with-jenkins-pip Let me know if it helps!
- The credentials are just the Username and Password of the Bitbucket user. This can be provided with the Jenkins Credentials Provider - The webhook URL can be created with the pattern (JENKINS_URL/buildByToken/buildWithParameters?token=TOKEN_NAME&job=JOB_NAME&Branch=BRANCH_NAME.) TOKEN_NAME is the value user passed in the pipeline, and Branch is the parameter