fix(ci): ignore stale Surefire reports

This commit is contained in:
2026-08-28 10:32:41 +08:00
parent a6f266687e
commit b34fbb2bd1
2 changed files with 8 additions and 0 deletions
Vendored
+1
View File
@@ -295,6 +295,7 @@ pipeline {
echo "统一测试本次选中的服务及其公共依赖: ${selectedModules}"
sh """
test \"\$(git rev-parse HEAD)\" = \"${env.SOURCE_COMMIT}\"
find . -type f -path '*/target/surefire-reports/TEST-*.xml' -delete
mvn --settings deploy/maven/settings-ci.xml --batch-mode --errors -pl ${selectedModules} -am test
"""
echo "统一测试门禁通过: ${env.SOURCE_COMMIT};下游单服务任务不再重复执行测试"