简体   繁体   中英

jenkins can't trigger build on pull request from bitbucket cloud

i need to trigger the job in jenkins when user raise the pull request to bitbucket cloud. I added repo url with credential.i added to refspec :+refs/pull-requests/ /from:refs/remotes/ and branch specifier : /pull-requests/ ...i update the build triggers with option bitbucket pull request builder, Build when a change is pushed to BitBucket and poll scm (*****).. I have added the public key in bitbucket cloud whereas added private key in jenkins server. I added the jenkins url with job name ( http://jenkinsurl:8080/jobname ) in bitbucket webhooks..but still cant trigger the job when user raise on pull request from bitbucket...i dont know where im wrong? guide me.what are the steps should perform for this?guide me anyone.

Hey I had a similar issue and managed to solve it with this answer. https://stackoverflow.com/a/47889853/10235273

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM