@@ -2,10 +2,10 @@ kind: step-type
2
2
version : ' 1.0'
3
3
metadata :
4
4
name : test-reporting
5
- version : 1.1.4
5
+ version : 1.2.0
6
6
title : Test reporting
7
7
isPublic : true
8
- description : Upload test report to some your storage integration.
8
+ description : Upload test report data to your storage integration.
9
9
sources :
10
10
- ' https://github.com/codefresh-io/cf-docker-test-reporting'
11
11
stage : incubating
@@ -45,7 +45,6 @@ metadata:
45
45
branch : ${{CF_BRANCH_TAG_NORMALIZED}}
46
46
report_dir : mochawesome-report
47
47
report_index_file : mochawesome.html
48
-
49
48
spec :
50
49
arguments : |-
51
50
{
@@ -77,21 +76,39 @@ spec:
77
76
"type": "string",
78
77
"description": "Directory with test report files"
79
78
},
79
+ "report_path": {
80
+ "type": "string",
81
+ "description": "Path where the report files are saved in the bucket"
82
+ },
80
83
"report_index_file": {
81
84
"type": "string",
82
85
"description": "Root file that will be open in report"
83
86
},
84
87
"branch" : {
85
88
"type": "string",
86
89
"description": "Normalized branch name"
90
+ },
91
+ "max_upload_size_mb": {
92
+ "type": "integer",
93
+ "description": "Max upload size in MB",
94
+ "default": 1000
95
+ },
96
+ "cf_api_retries": {
97
+ "type": "integer",
98
+ "description": "The number of times to retry if a Codefresh API call fails",
99
+ "default": 0
100
+ },
101
+ "image_tag": {
102
+ "type": "string",
103
+ "description": "The version of test reporting image",
104
+ "default": "1.2.0"
87
105
}
88
-
89
106
}
90
107
}
91
108
stepsTemplate : |-
92
109
first:
93
110
title: Generate test reporting
94
- image: codefresh/cf-docker-test-reporting:test-report-link
111
+ image: codefresh/cf-docker-test-reporting:[[ .Arguments.image_tag ]]
95
112
environment:
96
113
[[ if .Arguments.allure_dir ]]
97
114
- ALLURE_DIR=[[ .Arguments.allure_dir ]]
@@ -105,6 +122,9 @@ spec:
105
122
[[ if .Arguments.report_dir ]]
106
123
- REPORT_DIR=[[ .Arguments.report_dir ]]
107
124
[[ end ]]
125
+ [[ if .Arguments.report_path ]]
126
+ - REPORT_PATH=[[ .Arguments.report_path ]]
127
+ [[ end ]]
108
128
[[ if .Arguments.report_index_file ]]
109
129
- REPORT_INDEX_FILE=[[ .Arguments.report_index_file ]]
110
130
[[ end ]]
@@ -113,6 +133,12 @@ spec:
113
133
[[ end ]]
114
134
[[ if .Arguments.storage_integration ]]
115
135
- CF_STORAGE_INTEGRATION=[[ .Arguments.storage_integration ]]
136
+ [[ end ]]
137
+ [[ if .Arguments.max_upload_size_mb ]]
138
+ - MAX_UPLOAD_SIZE_MB=[[ .Arguments.max_upload_size_mb ]]
139
+ [[ end ]]
140
+ [[ if .Arguments.cf_api_retries ]]
141
+ - CF_API_RETRIES=[[ .Arguments.cf_api_retries ]]
116
142
[[ end ]]
117
143
- CF_STEP_NAME=first
118
144
- CF_VOLUME_PATH=/meta
0 commit comments