You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integration/bitbucket_server.mdx
-25Lines changed: 0 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,9 @@ Site admins can [configure Sourcegraph to respect Bitbucket Server / Bitbucket D
22
22
23
23
We recommend installing the Sourcegraph Bitbucket plugin which adds the following features to your Bitbucket Server / Bitbucket Data Center instance:
24
24
25
-
-**Native code navigation**: users don't need to install the [Sourcegraph browser extension](#browser-extension) to get hover tooltips, go-to-definition, find-references, and code search while browsing files and viewing pull requests on Bitbucket Server / Bitbucket Data Center.
26
25
-**Fast permission syncing** between Sourcegraph and Bitbucket Server / Bitbucket Data Center
27
26
-**Webhooks with configurable scope**, which are used by and highly recommended for usage with [batch changes](/batch-changes/)
28
27
29
-

30
-
31
28
### Installation and requirements
32
29
33
30
Install the Sourcegraph plugin for Bitbucket from the [Atlassian Marketplace](https://marketplace.atlassian.com/apps/1231975/sourcegraph-for-bitbucket?tab=overview&hosting=datacenter) or see the [bitbucket-server-plugin](https://github.com/sourcegraph/bitbucket-server-plugin) repository for instructions on how to manually install the plugin on your Bitbucket Server / Bitbucket Data Center instance.
@@ -72,12 +69,6 @@ In order to update the plugin, follow the same steps as for installing it, which
72
69
73
70
When the Sourcegraph instance connected to the Bitbucket Server plugin is updated, so will the code that's fetched by the plugin to enable native code navigation. No manual steps required. (See the [Technical Details](#technical-details) section on how this works.)
74
71
75
-
### Native code navigation
76
-
77
-
Once the plugin is installed and the **Sourcegraph URL** is set under **Administration > Add-ons > Sourcegraph**, native code navigation is enabled when browsing code or pull requests on your Bitbucket Server / Bitbucket Data Center instance.
78
-
79
-
To disable native code navigation, simply set **Sourcegraph URL** to an empty value. Note that this will also disable [Webhooks](#webhooks)!
80
-
81
72
### Webhooks
82
73
83
74
Once the plugin is installed, go to **Administration > Add-ons > Sourcegraph** to see a list of all configured webhooks and to create a new one.
@@ -104,22 +95,6 @@ This section provides some technical insight into the Bitbucket Server plugin to
104
95
105
96
You can find the full source code for the plugin at [github.com/sourcegraph/bitbucket-server-plugin](https://github.com/sourcegraph/bitbucket-server-plugin/).
106
97
107
-
#### Native code navigation
108
-
109
-
The Bitbucket Server plugin provides **native code navigation** without users having to install the [Sourcegraph browser extension](/integration/browser_extension).
110
-
111
-
It does that by fetching the required JavaScript code from the configured Sourcegraph instance and injecting it into the HTML that the Bitbucket Server / Bitbucket Data Center instance serves. See the [`sourcegraph-bitbucket.js`](https://github.com/sourcegraph/bitbucket-server-plugin/blob/master/src/main/resources/js/sourcegraph-bitbucket.js) file for how it does that.
112
-
113
-
The code that's injected is the code of the [Sourcegraph browser extension](#browser-extension). It is hosted by your Sourcegraph instance in this case and adds the same code navigation functionality to all files and pull requests viewed on Bitbucket Server / Bitbucket Data Center.
114
-
115
-
The code only talks to the Sourcegraph instance that's configured in the Bitbucket Server plugin configuration. It doesn't add any more load to the Bitbucker Server instance.
116
-
117
-
No private code, private repository names, usernames, or any other specific data is sent somewhere else. The code will send usage information to the connected private Sourcegraph instance only, so that the site admins can see usage statistics.
118
-
119
-
If it failed to load or talk to the Sourcegraph instance, messages are logged to the browser console.
120
-
121
-
When the Sourcegraph instance is updated to a newer version, the embedded browser extension code that provides the native code navigation may also be updated.
122
-
123
98
#### Webhooks
124
99
125
100
Bitbucket Server / Bitbucket Data Center natively only [provides **per-repository** webhooks](https://confluence.atlassian.com/bitbucketserver/managing-webhooks-in-bitbucket-server-938025878.html).
0 commit comments