Add xml report to Model Manager test job
Change-Id: I60825ac43db608909bffc40847d6686e832c2c94
Related-task: #PROD-25044 (PROD:25044)
diff --git a/test-model-generator.groovy b/test-model-generator.groovy
index 67c638b..ce551d7 100644
--- a/test-model-generator.groovy
+++ b/test-model-generator.groovy
@@ -29,7 +29,8 @@
def cvpImageName = env.CVP_DOCKER_IMG ? "${dockerRegistry}/${env.CVP_DOCKER_IMG}:${version}" : "${dockerRegistry}/mirantis/cvp/cvp-trymcp-tests:${version}"
def checkouted = false
-def testReportFile = 'reports/report.html'
+def testReportHTMLFile = 'reports/report.html'
+def testReportXMLFile = 'reports/report.xml'
def manualTrigger = false
def apiProject = 'operations-api'
@@ -164,8 +165,11 @@
currentBuild.result = "FAILURE"
throw e
} finally {
- if (fileExists(testReportFile)) {
- archiveArtifacts artifacts: testReportFile
+ if (fileExists(testReportHTMLFile)) {
+ archiveArtifacts artifacts: testReportHTMLFile
+ }
+ if (fileExists(testReportXMLFile)) {
+ archiveArtifacts artifacts: testReportXMLFile
}
stage("Cleanup") {
if (fileExists("${env.WORKSPACE}/venv")) {