Skip to content

Commit 1649290

Browse files
authored
Add max file upload argument to test-reporting step (#698)
* add max_upload_size_mb for test-reporting step * update version * add missing argument definition * update tag to new version * add missing arguments * update image tag to latest pre-release tag * add image tag to step * Fix bugs, defaults and descriptions in step after testing * Update to full release tag for step
1 parent 3d0b168 commit 1649290

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

incubating/test-reporting/step.yaml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ kind: step-type
22
version: '1.0'
33
metadata:
44
name: test-reporting
5-
version: 1.1.4
5+
version: 1.2.0
66
title: Test reporting
77
isPublic: true
8-
description: Upload test report to some your storage integration.
8+
description: Upload test report data to your storage integration.
99
sources:
1010
- 'https://github.com/codefresh-io/cf-docker-test-reporting'
1111
stage: incubating
@@ -45,7 +45,6 @@ metadata:
4545
branch: ${{CF_BRANCH_TAG_NORMALIZED}}
4646
report_dir: mochawesome-report
4747
report_index_file: mochawesome.html
48-
4948
spec:
5049
arguments: |-
5150
{
@@ -77,21 +76,39 @@ spec:
7776
"type": "string",
7877
"description": "Directory with test report files"
7978
},
79+
"report_path": {
80+
"type": "string",
81+
"description": "Path where the report files are saved in the bucket"
82+
},
8083
"report_index_file": {
8184
"type": "string",
8285
"description": "Root file that will be open in report"
8386
},
8487
"branch" : {
8588
"type": "string",
8689
"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"
87105
}
88-
89106
}
90107
}
91108
stepsTemplate: |-
92109
first:
93110
title: Generate test reporting
94-
image: codefresh/cf-docker-test-reporting:test-report-link
111+
image: codefresh/cf-docker-test-reporting:[[ .Arguments.image_tag ]]
95112
environment:
96113
[[ if .Arguments.allure_dir ]]
97114
- ALLURE_DIR=[[ .Arguments.allure_dir ]]
@@ -105,6 +122,9 @@ spec:
105122
[[ if .Arguments.report_dir ]]
106123
- REPORT_DIR=[[ .Arguments.report_dir ]]
107124
[[ end ]]
125+
[[ if .Arguments.report_path ]]
126+
- REPORT_PATH=[[ .Arguments.report_path ]]
127+
[[ end ]]
108128
[[ if .Arguments.report_index_file ]]
109129
- REPORT_INDEX_FILE=[[ .Arguments.report_index_file ]]
110130
[[ end ]]
@@ -113,6 +133,12 @@ spec:
113133
[[ end ]]
114134
[[ if .Arguments.storage_integration ]]
115135
- 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 ]]
116142
[[ end ]]
117143
- CF_STEP_NAME=first
118144
- CF_VOLUME_PATH=/meta

0 commit comments

Comments
 (0)