forked from kubesphere-sigs/pipeline-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
junit.yaml
59 lines (59 loc) · 1.42 KB
/
junit.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
apiVersion: devops.kubesphere.io/v1alpha3
kind: ClusterStepTemplate
metadata:
name: junit
labels:
step.devops.kubesphere.io/category: "general"
annotations:
devops.kubesphere.io/displayNameEN: "JUnit Report"
devops.kubesphere.io/descriptionEN: "Prase JUnit report"
step.devops.kubesphere.io/icon: "test"
spec:
runtime: dsl
parameters:
- name: allowEmptyResults
type: bool
display: 'Allow rmpty results'
- name: keepLongStdio
type: bool
display: 'Keep long output'
- name: skipPublishingChecks
type: bool
display: 'Skip publishing checks'
- name: testResults
type: string
display: 'JUnit report file path'
template: |
{
"arguments": [
{
"key": "allowEmptyResults",
"value": {
"isLiteral": true,
"value": {{.param.allowEmptyResults}}
}
},
{
"key": "keepLongStdio",
"value": {
"isLiteral": true,
"value": {{.param.keepLongStdio}}
}
},
{
"key": "skipPublishingChecks",
"value": {
"isLiteral": true,
"value": {{.param.skipPublishingChecks}}
}
},
{
"key": "testResults",
"value": {
"isLiteral": true,
"value": {{.param.testResults}}"
}
}
],
"name": "junit"
}