Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

With this servicehook, you can integrate Bitbucket with Jenkins, an extendable open source continuous integration server
Include Page_Need Admin Permissionnopaneltrue_Need Admin Permission

Setting up the service

 . If you are having trouble with the hook, see Troubleshoot Bitbucket hooks. For help understanding Jenkins' security options and their implications to triggering remote builds, please review the Jenkins documentation

Setting Up the hook

 You must have administrative access on a repository to add this hook.

  1. Go to the Bitbucket 'Admin' tabrepository's settings.
  2. Click 'Services' Hooks in the 'Additional options/settings' section on the rightleft-hand side of the screennavigation.
    The hooks page appears.
  3. Select the 'Jenkins' service hook from the dropdown list in the 'Services Administration' section Hook dropdown.
  4. Click 'Add service'hook.
    A new section appears for the Jenkins service hook.
  5. Enter the following information:

    • Endpoint – Enter your Jenkins endpoint URL.
    • Project name – Enter your Jenkins project name.
    • Token -- Enter the Jenkins token (optional).
    • Module name -- Enter the Jenkins module name (optional).
  6. Click 'Save settings'.

Image Removed


Managing bitbucket Services

  1. Image Added

    Csrf EnabledIf set, the hook will work with Jenkins when csrf is enabled on the server. (error)
    Module nameIf set, only commits to the specified module (or directory) will trigger a Jenkins build.apps/Bitbucket(error)
    TokenIf you have token authentication enabled for your builds, insert it here. (error)
    Project NameThe name of the Jenkins job you wish to run builds onbitbucket Selenium Tests(tick)

    The endpoint URL for your Jenkins instance. This can be any standard URL in the format. Basic authentication will be used when providing a username and password in the field.

    Code Block


  2. Press Save.