@backstage/plugin-catalog-backend-module-bitbucket-server 0.1.0-next.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-bitbucket-server
|
|
2
2
|
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f7607f9d85: Add new plugin catalog-backend-module-bitbucket-server which adds the `BitbucketServerEntityProvider`.
|
|
8
|
+
|
|
9
|
+
The entity provider is meant as a replacement for the `BitbucketDiscoveryProcessor` to be used with Bitbucket Server (Bitbucket Cloud already has a replacement).
|
|
10
|
+
|
|
11
|
+
**Before:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
// packages/backend/src/plugins/catalog.ts
|
|
15
|
+
builder.addProcessor(
|
|
16
|
+
BitbucketDiscoveryProcessor.fromConfig(env.config, { logger: env.logger }),
|
|
17
|
+
);
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```yaml
|
|
21
|
+
# app-config.yaml
|
|
22
|
+
catalog:
|
|
23
|
+
locations:
|
|
24
|
+
- type: bitbucket-discovery
|
|
25
|
+
target: 'https://bitbucket.mycompany.com/projects/*/repos/*/catalog-info.yaml
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**After:**
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
// packages/backend/src/plugins/catalog.ts
|
|
32
|
+
builder.addEntityProvider(
|
|
33
|
+
BitbucketServerEntityProvider.fromConfig(env.config, {
|
|
34
|
+
logger: env.logger,
|
|
35
|
+
schedule: env.scheduler.createScheduledTaskRunner({
|
|
36
|
+
frequency: { minutes: 30 },
|
|
37
|
+
timeout: { minutes: 3 },
|
|
38
|
+
}),
|
|
39
|
+
}),
|
|
40
|
+
);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```yaml
|
|
44
|
+
# app-config.yaml
|
|
45
|
+
catalog:
|
|
46
|
+
providers:
|
|
47
|
+
bitbucketServer:
|
|
48
|
+
yourProviderId: # identifies your ingested dataset
|
|
49
|
+
catalogPath: /catalog-info.yaml # default value
|
|
50
|
+
filters: # optional
|
|
51
|
+
projectKey: '.*' # optional; RegExp
|
|
52
|
+
repoSlug: '.*' # optional; RegExp
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Updated dependencies
|
|
58
|
+
- @backstage/backend-common@0.15.0
|
|
59
|
+
- @backstage/integration@1.3.0
|
|
60
|
+
- @backstage/backend-tasks@0.3.4
|
|
61
|
+
- @backstage/plugin-catalog-backend@1.3.1
|
|
62
|
+
|
|
3
63
|
## 0.1.0-next.0
|
|
4
64
|
|
|
5
65
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-bitbucket-server",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
"postpack": "backstage-cli package postpack"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/backend-common": "^0.15.0
|
|
36
|
-
"@backstage/backend-tasks": "^0.3.4
|
|
35
|
+
"@backstage/backend-common": "^0.15.0",
|
|
36
|
+
"@backstage/backend-tasks": "^0.3.4",
|
|
37
37
|
"@backstage/catalog-model": "^1.0.1",
|
|
38
38
|
"@backstage/config": "^1.0.0",
|
|
39
39
|
"@backstage/errors": "^1.0.0",
|
|
40
|
-
"@backstage/integration": "^1.3.0
|
|
41
|
-
"@backstage/plugin-catalog-backend": "^1.3.1
|
|
40
|
+
"@backstage/integration": "^1.3.0",
|
|
41
|
+
"@backstage/plugin-catalog-backend": "^1.3.1",
|
|
42
42
|
"cross-fetch": "^3.1.5",
|
|
43
43
|
"uuid": "^8.0.0",
|
|
44
44
|
"winston": "^3.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@backstage/backend-test-utils": "^0.1.27
|
|
48
|
-
"@backstage/cli": "^0.18.1
|
|
47
|
+
"@backstage/backend-test-utils": "^0.1.27",
|
|
48
|
+
"@backstage/cli": "^0.18.1",
|
|
49
49
|
"msw": "^0.44.0"
|
|
50
50
|
},
|
|
51
51
|
"files": [
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"config.d.ts"
|
|
54
54
|
],
|
|
55
55
|
"configSchema": "config.d.ts",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a12f6269e3bf224aa7f52475be9152bc52addeed"
|
|
57
57
|
}
|