Skip to end of banner
Go to start of banner

How to Configure Webhook to Jenkins with Smart Mirrors

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Smart Mirrors currently only works with the Git Plugin.

Smart Mirrors helps when Bitbucket Server is used by distributed teams which are working with large repositories. It allows you to use local mirror instance for git operations which greatly increased performance for your organization.

Webhook to Jenkins can also be configured to use this mirror (as it requires clones for each build).

Setup

If Smart mirror is configured correctly Bitbucket shows the following option when providing a clone URL:

You will need to choose your mirror, and use the Clone URLĀ to configure your Jenkins job. This step assumes you are using Git Plugin asĀ Bitbucket Branch Source plugin won't work with mirror (as it provides support for basic git operation only)

Next step is select mirror server in hook settings:

Mirror server dropdown doesn't appear if no mirrors are configured.

Selecting a mirror changes plugin behavior when it ignores all regular events but triggers jenkins only when selected mirror is synchronized with primary server. Clone url is changing accordingly to the mirror selected.

If it's required to revert to regular behavior "Primary" option needs to selected.

  • No labels