-
Notifications
You must be signed in to change notification settings - Fork 7
/
junit.yaml
61 lines (61 loc) · 1.56 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
60
61
apiVersion: devops.kubesphere.io/v1alpha3
kind: ClusterStepTemplate
metadata:
name: junit
labels:
step.devops.kubesphere.io/category: "General"
annotations:
devops.kubesphere.io/displayNameZH: "JUnit 报告"
devops.kubesphere.io/descriptionZH: "格式化 JUnit 测试结果"
devops.kubesphere.io/displayNameEN: "JUnit Report"
devops.kubesphere.io/descriptionEN: "Archive JUnit-formatted test results"
step.devops.kubesphere.io/icon: "test"
spec:
runtime: dsl
parameters:
- name: testResults
type: string
display: 'Test Results Location'
- name: allowEmptyResults
type: bool
display: 'Allow Empty Results'
- name: keepLongStdio
type: bool
display: 'Keep Long Output'
- name: skipPublishingChecks
type: bool
display: 'Skip Publishing Checks'
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"
}