forked from kubesphere-sigs/pipeline-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline-trigger.yaml
63 lines (63 loc) · 1.39 KB
/
pipeline-trigger.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: devops.kubesphere.io/v1alpha3
kind: ClusterStepTemplate
metadata:
name: build
labels:
step.devops.kubesphere.io/category: "general"
annotations:
devops.kubesphere.io/displayNameEN: "Pipeline trigger"
devops.kubesphere.io/descriptionEN: "Pipeline trigger step"
step.devops.kubesphere.io/icon: "terminal"
spec:
runtime: dsl
parameters:
- name: job
type: pipeline
display: 'Target Pipeline name'
required: true
- name: quietPeriod
type: number
display: 'Quiet period'
defaultValue: "0"
- name: wait
type: bool
display: 'Wait for completion'
defaultValue: "true"
- name: propagate
type: bool
display: 'Propagate errors'
defaultValue: "true"
template: |
{
"arguments": [
{
"key": "quietPeriod",
"value": {
"isLiteral": true,
"value": {{.param.quietPeriod}}
}
},
{
"key": "wait",
"value": {
"isLiteral": true,
"value": {{.param.wait}}
}
},
{
"key": "propagate",
"value": {
"isLiteral": true,
"value": {{.param.propagate}}
}
},
{
"key": "job",
"value": {
"isLiteral": true,
"value": "{{.param.job}}"
}
}
],
"name": "build"
}