forked from backstage/backstage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request backstage#5381 from msamad/msamad/add-repourlpicke…
…r-for-bitbucketcloud Add repourlpicker and publisher for bitbucket cloud
- Loading branch information
Showing
20 changed files
with
630 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@backstage/plugin-scaffolder': minor | ||
'@backstage/plugin-scaffolder-backend': minor | ||
--- | ||
|
||
Add Bitbucket workspace and project fields to RepoUrlPicker to support Bitbucket cloud and server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ Avro | |
backrub | ||
Bigtable | ||
Billett | ||
Bitbucket | ||
Bitrise | ||
Blackbox | ||
bool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
plugins/scaffolder-backend/sample-templates/bitbucket-demo/template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
apiVersion: backstage.io/v1beta2 | ||
kind: Template | ||
metadata: | ||
name: bitbucket-demo | ||
title: Test Bitbucket RepoUrlPicker template | ||
description: scaffolder v1beta2 template demo publishing to bitbucket | ||
spec: | ||
owner: backstage/techdocs-core | ||
type: service | ||
|
||
parameters: | ||
- title: Choose a location | ||
required: | ||
- repoUrl | ||
properties: | ||
repoUrl: | ||
title: Repository Location | ||
type: string | ||
ui:field: RepoUrlPicker | ||
ui:options: | ||
allowedHosts: | ||
- bitbucket.org | ||
- server.bitbucket.com | ||
- title: Fill in some steps | ||
required: | ||
- name | ||
- owner | ||
properties: | ||
name: | ||
title: Name | ||
type: string | ||
description: Unique name of the component | ||
ui:autofocus: true | ||
ui:options: | ||
rows: 5 | ||
owner: | ||
title: Owner | ||
type: string | ||
description: Owner of the component | ||
ui:field: OwnerPicker | ||
ui:options: | ||
allowedKinds: | ||
- Group | ||
|
||
steps: | ||
- id: fetch-base | ||
name: Fetch Base | ||
action: fetch:cookiecutter | ||
input: | ||
url: ./template | ||
values: | ||
name: '{{ parameters.name }}' | ||
owner: '{{ parameters.owner }}' | ||
|
||
- id: fetch-docs | ||
name: Fetch Docs | ||
action: fetch:plain | ||
input: | ||
targetPath: ./community | ||
url: https://github.com/backstage/community/tree/main/backstage-community-sessions | ||
|
||
- id: publish | ||
name: Publish | ||
action: publish:bitbucket | ||
input: | ||
description: 'This is {{ parameters.name }}' | ||
repoUrl: '{{ parameters.repoUrl }}' | ||
|
||
- id: register | ||
name: Register | ||
action: catalog:register | ||
input: | ||
repoContentsUrl: '{{ steps.publish.output.repoContentsUrl }}' | ||
catalogInfoPath: '/catalog-info.yaml' | ||
|
||
output: | ||
remoteUrl: '{{ steps.publish.output.remoteUrl }}' | ||
entityRef: '{{ steps.register.output.entityRef }}' |
8 changes: 8 additions & 0 deletions
8
plugins/scaffolder-backend/sample-templates/bitbucket-demo/template/catalog-info.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: {{cookiecutter.name | jsonify}} | ||
spec: | ||
type: website | ||
lifecycle: experimental | ||
owner: {{cookiecutter.owner | jsonify}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.