Use default RepoUrlPicker for bitbucket fields
Also updated the default bitbucket publisher to handle workspace and project fields Signed-off-by: Mustansar Anwar ul Samad <mustansar.samad@gmail.com>
This commit is contained in:
+10
-5
@@ -1,9 +1,9 @@
|
||||
apiVersion: backstage.io/v1beta2
|
||||
kind: Template
|
||||
metadata:
|
||||
name: bitbucket-cloud
|
||||
title: Test Bitbucket Cloud RepoUrlPicker template
|
||||
description: scaffolder v1beta2 template demo publishing to bitbucket cloud
|
||||
name: bitbucket-demo
|
||||
title: Test Bitbucket RepoUrlPicker template
|
||||
description: scaffolder v1beta2 template demo publishing to bitbucket
|
||||
spec:
|
||||
owner: backstage/techdocs-core
|
||||
type: service
|
||||
@@ -16,7 +16,12 @@ spec:
|
||||
repoUrl:
|
||||
title: Repository Location
|
||||
type: string
|
||||
ui:field: RepoUrlPickerBitbucketCloud
|
||||
ui:field: RepoUrlPicker
|
||||
ui:options:
|
||||
allowedHosts:
|
||||
- github.com
|
||||
- bitbucket.org
|
||||
- server.bitbucket.com
|
||||
- title: Fill in some steps
|
||||
required:
|
||||
- name
|
||||
@@ -57,7 +62,7 @@ spec:
|
||||
|
||||
- id: publish
|
||||
name: Publish
|
||||
action: publish:bitbucketcloud
|
||||
action: publish:bitbucket
|
||||
input:
|
||||
allowedHosts: ['bitbucket.org']
|
||||
description: 'This is {{ parameters.name }}'
|
||||
@@ -11,4 +11,4 @@ spec:
|
||||
- ./springboot-grpc-template/template.yaml
|
||||
- ./v1beta2-demo/template.yaml
|
||||
- ./pull-request/template.yaml
|
||||
- ./bitbucket-cloud-demo/template.yaml
|
||||
- ./bitbucket-demo/template.yaml
|
||||
|
||||
Reference in New Issue
Block a user