build file
Some checks failed
test/timeline-server/pipeline/head There was a failure building this commit

This commit is contained in:
jiangh277
2025-12-24 16:05:59 +08:00
parent f57ab44094
commit b3f8aa6eb7

11
Jenkinsfile vendored
View File

@@ -53,7 +53,16 @@ pipeline {
} }
post { post {
always { always {
junit testResults: 'target/surefire-reports/*.xml' script {
// 检查测试报告文件是否存在
def reportFiles = findFiles(glob: 'target/surefire-reports/TEST-*.xml')
if (reportFiles.length > 0) {
echo "找到 ${reportFiles.length} 个测试报告文件"
junit testResults: 'target/surefire-reports/TEST-*.xml'
} else {
echo "未找到测试报告文件跳过JUnit发布"
}
}
} }
} }
} }