-
Notifications
You must be signed in to change notification settings - Fork 10
/
tutorial-template-create-jira-project.yaml
63 lines (62 loc) · 1.75 KB
/
tutorial-template-create-jira-project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: jira-project
title: Create a JIRA Project
description: A template to create a Jira Project
tags:
- jira
- management
spec:
owner: owner@company.com
type: service
parameters:
- title: Service Details
required:
- projectkey
- projectname
- templatekey
- usergroup
properties:
projectkey:
title: Jira Project Key
type: string
default: DEMO
description: Your Project will have this key which will appear in the url
projectname:
type: string
title: Add a project name
default: demo
templatekey:
type: string
title: Add the template type
desciption: Select and add a template
usergroup:
title: Choose an Owner for the Service
type: string
ui:field: OwnerPicker
ui:options:
allowedKinds:
- Group
# This field is hidden but needed to authenticate the request to trigger the pipeline
token:
title: Harness Token
type: string
ui:widget: password
ui:field: HarnessAuthToken
steps:
- id: trigger
name: Bootstrapping your new service
action: trigger:harness-custom-pipeline
input:
url: "PIPELINE URL"
inputset:
projectkey: ${{ parameters.projectkey }}
projectname: ${{ parameters.projectname }}
templatekey: ${{ parameters.templatekey }}
usergroup: ${{ parameters.usergroup }}
apikey: ${{ parameters.token }}
output:
links:
- title: Pipeline Details
url: ${{ steps.trigger.output.PipelineUrl }}