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
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
212
-
{/* Last updated: Manual setup - will be automated via sourcegraph/sourcegraph releases*/}
212
+
{/* Last updated: 2025-07-01T23:25:33Z via sourcegraph/sourcegraph@v6.5.1211*/}
213
213
```json
214
+
// Authentication alternatives: token OR password
215
+
214
216
{
215
217
// If non-null, enforces Bitbucket Server / Bitbucket Data Center repository permissions.
216
-
"authorization": null,
218
+
"authorization": {
219
+
"identityProvider": {
220
+
"type": null
221
+
},
222
+
"oauth": {
223
+
"consumerKey": null,
224
+
"signingKey": null
225
+
},
226
+
"oauth2": false
227
+
},
217
228
218
229
// TLS certificate of the Bitbucket Server / Bitbucket Data Center instance. This is only necessary if the certificate is self-signed or signed by an internal CA. To get the certificate run `openssl s_client -connect HOST:443 -showcerts < /dev/null 2> /dev/null | openssl x509 -outform PEM`. To escape the value into a JSON string, you may want to use a tool like https://json-escape-text.now.sh.
219
-
"certificate": null,
220
230
// Other example values:
221
231
// - "-----BEGIN CERTIFICATE-----\n..."
232
+
"certificate": null,
222
233
223
234
// A list of repositories to never mirror from this Bitbucket Server / Bitbucket Data Center instance. Takes precedence over "repos" and "repositoryQuery".
224
-
//
225
235
// Supports excluding by name ({"name": "projectKey/repositorySlug"}) or by ID ({"id": 42}).
226
-
"exclude": null,
227
236
// Other example values:
228
237
// - [
229
238
// {
@@ -247,29 +256,43 @@ Bitbucket Server / Bitbucket Data Center connections support the following confi
247
256
// "pattern": "^topsecretproject/.*"
248
257
// }
249
258
// ]
259
+
"exclude": null,
250
260
251
261
// Whether or not personal repositories should be excluded or not. When true, Sourcegraph will ignore personal repositories it may have access to. See https://sourcegraph.com/docs/integration/bitbucket_server#excluding-personal-repositories for more information.
252
262
"excludePersonalRepositories": false,
253
263
264
+
// SSH cipher to use when cloning via SSH. Must be a valid choice from `ssh -Q cipher`.
265
+
"gitSSHCipher": null,
266
+
267
+
// SSH keys to use when cloning Git repo.
268
+
"gitSSHCredential": null,
269
+
254
270
// The type of Git URLs to use for cloning and fetching Git repositories on this Bitbucket Server / Bitbucket Data Center instance.
255
-
//
256
271
// If "http", Sourcegraph will access Bitbucket Server / Bitbucket Data Center repositories using Git URLs of the form http(s)://bitbucket.example.com/scm/myproject/myrepo.git (using https: if the Bitbucket Server / Bitbucket Data Center instance uses HTTPS).
257
-
//
258
-
// If "ssh", Sourcegraph will access Bitbucket Server / Bitbucket Data Center repositories using Git URLs of the form ssh://[email protected]/myproject/myrepo.git. See the documentation for how to provide SSH private keys and known_hosts: https://sourcegraph.com/docs/admin/repo/auth#repositories-that-need-http-s-or-ssh-authentication.
259
-
"gitURLType": "http",
272
+
// If "ssh", Sourcegraph will access Bitbucket Server / Bitbucket Data Center repositories using Git URLs of the form ssh://[email protected]/myproject/myrepo.git. See the documentation for how to provide SSH private keys and known_hosts: https://sourcegraph.com/docs/admin/repo/auth.
273
+
// Valid options: "http", "ssh"
260
274
// Other example values:
261
275
// - "ssh"
276
+
"gitURLType": "http",
262
277
263
278
// Deprecated and ignored field which will be removed entirely in the next release. BitBucket repositories can no longer be enabled or disabled explicitly.
264
279
"initialRepositoryEnablement": false,
265
280
281
+
// The maximum number of repos that will be deleted per sync. A value of 0 or less indicates no maximum.
282
+
"maxDeletions": 0,
283
+
266
284
// The password to use when authenticating to the Bitbucket Server / Bitbucket Data Center instance. Also set the corresponding "username" field.
267
-
//
268
285
// For Bitbucket Server / Bitbucket Data Center instances that support personal access tokens (Bitbucket Server / Bitbucket Data Center version 5.5 and newer), it is recommended to provide a token instead (in the "token" field).
269
286
"password": null,
270
287
271
288
// Configuration for Bitbucket Server / Bitbucket Data Center Sourcegraph plugin
272
-
"plugin": null,
289
+
"plugin": {
290
+
"permissions": "disabled",
291
+
"webhooks": {
292
+
"disableSync": false,
293
+
"secret": null
294
+
}
295
+
},
273
296
274
297
// An array of project key strings that defines a collection of repositories related to their associated project keys
275
298
"projectKeys": null,
@@ -281,57 +304,55 @@ Bitbucket Server / Bitbucket Data Center connections support the following confi
281
304
},
282
305
283
306
// An array of repository "projectKey/repositorySlug" strings specifying repositories to mirror on Sourcegraph.
284
-
"repos": null,
285
307
// Other example values:
286
308
// - [
287
309
// "myproject/myrepo",
288
310
// "myproject/myotherrepo",
289
311
// "~USER/theirrepo"
290
312
// ]
313
+
"repos": null,
291
314
292
315
// The pattern used to generate the corresponding Sourcegraph repository name for a Bitbucket Server / Bitbucket Data Center repository.
293
-
//
294
-
// - "{host}" is replaced with the Bitbucket Server / Bitbucket Data Center URL's host (such as bitbucket.example.com)
295
-
// - "{projectKey}" is replaced with the Bitbucket repository's parent project key (such as "PRJ")
296
-
// - "{repositorySlug}" is replaced with the Bitbucket repository's slug key (such as "my-repo").
297
-
//
316
+
// - "{host}" is replaced with the Bitbucket Server / Bitbucket Data Center URL's host (such as bitbucket.example.com)
317
+
// - "{projectKey}" is replaced with the Bitbucket repository's parent project key (such as "PRJ")
318
+
// - "{repositorySlug}" is replaced with the Bitbucket repository's slug key (such as "my-repo").
298
319
// For example, if your Bitbucket Server / Bitbucket Data Center is https://bitbucket.example.com and your Sourcegraph is https://src.example.com, then a repositoryPathPattern of "{host}/{projectKey}/{repositorySlug}" would mean that a Bitbucket Server / Bitbucket Data Center repository at https://bitbucket.example.com/projects/PRJ/repos/my-repo is available on Sourcegraph at https://src.example.com/bitbucket.example.com/PRJ/my-repo.
299
-
//
300
320
// It is important that the Sourcegraph repository name generated with this pattern be unique to this code host. If different code hosts generate repository names that collide, Sourcegraph's behavior is undefined.
// An array of strings specifying which repositories to mirror on Sourcegraph. Each string is a URL query string with parameters that filter the list of returned repos. Examples: "?name=my-repo&projectname=PROJECT&visibility=private".
306
-
//
307
326
// The special string "none" can be used as the only element to disable this feature. Repositories matched by multiple query strings are only imported once. Here's the official Bitbucket Server / Bitbucket Data Center documentation about which query string parameters are valid: https://docs.atlassian.com/bitbucket-server/rest/6.1.2/bitbucket-rest.html#idp355
// A Bitbucket Server / Bitbucket Data Center personal access token with Read permissions. When using batch changes, the token needs Write permissions. Create one at https://[your-bitbucket-hostname]/plugins/servlet/access-tokens/add. Also set the corresponding "username" field.
317
-
//
318
336
// For Bitbucket Server / Bitbucket Data Center instances that don't support personal access tokens (Bitbucket Server / Bitbucket Data Center version 5.4 and older), specify user-password credentials in the "username" and "password" fields.
319
337
"token": null,
320
338
339
+
// REQUIRED:
321
340
// URL of a Bitbucket Server / Bitbucket Data Center instance, such as https://bitbucket.example.com.
322
-
"url": null,
323
341
// Other example values:
324
342
// - "https://bitbucket.example.com"
343
+
"url": null,
325
344
345
+
// REQUIRED:
326
346
// The username to use when authenticating to the Bitbucket Server / Bitbucket Data Center instance. Also set the corresponding "token" or "password" field.
0 commit comments