Bitbucket plugin does not trigger builds

Issue

I have configured Bitbucket with a POST hook, but my build is not executed (‘Build when a change is pushed to BitBucket’ is enabled).

Environment

  • DEV@cloud
  • CloudBees Jenkins Enterprise
  • Bitbucket 1.0

Resolution

The way you should configure the BitBucket plugin is explained in our documentation https://wiki.jenkins-ci.org/display/JENKINS/BitBucket+Plugin

If you did a push and your job was not triggered, you should ensure that on BitBucket side you have configured your hook with an URL like this one: “https://<ACCOUNT_ID>.ci.cloudbees.com/bitbucket-hook/”. Notice that last “/”, without it, the build will not be triggered.

You can also check that Jenkins has received the trigger hook in the Jenkins access logs: https://<ACCOUNT_ID>.ci.cloudbees.com/container-logs/browse/

You can also enable some BitBucket logs under Manage Jenkins -> System Logs->New Log Recorder with a configuration like the one below:

bitbucket_log.png

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.