Skip to content

Commit c058dd4

Browse files
CLD-792 add results cleanup (#143)
* Add cleanup step for test_results * remove html publishing as it's not used * add results archival * remove invalid comment
1 parent c1b6ef3 commit c058dd4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Jenkinsfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void lint() {
127127

128128
void publishTestResults() {
129129
junit allowEmptyResults:true, testResults: '**/test/test_results/*.xml'
130-
publishHTML allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'test/test_results', reportFiles: 'report.html', reportName: 'Kubernetes Tests Report', reportTitles: ''
130+
archiveArtifacts artifacts: '**/test/test_results/*.xml', allowEmptyArchive: true
131131
}
132132

133133
void pullImage() {
@@ -232,13 +232,14 @@ pipeline {
232232

233233
post {
234234
always {
235+
publishTestResults()
235236
sh '''
236237
docker system prune --force --filter "until=720h"
237238
docker volume prune --force
238239
docker image prune --force --all
239240
export MINIKUBE_HOME=/space; minikube delete --all --purge
240241
'''
241-
publishTestResults()
242+
sh "rm -rf $WORKSPACE/test/test_results/"
242243
}
243244
success {
244245
resultNotification('BUILD SUCCESS ✅')

makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ e2e-test: prepare
108108
# hc-test
109109
#***************************************************************************
110110
## Run all HC tests
111-
## Options:
112-
## * [some option]
113111
.PHONY: hc-test
114112
hc-test:
115113

0 commit comments

Comments
 (0)