Jenkins 没有报告我们的单元测试失败。这是我们在构建日志中看到的内容:
[JENKINS] Recording test results
hudson.AbortException: Test reports were found but none of them are new. Did tests run?
For example, /home/tomcat/.jenkins/jobs/ws-main-gerrit/workspace/commons/commons-utils/target/surefire-reports/TEST-commons.utils.TransformationUtilsTest.xml is 32 min old
问题在于,当 Gerrit 触发 Jenkins 构建时,它会创建带有不正确(30 分钟前)时间戳的目标目录。Jenkins 和 Gerrit 所在服务器的时间是正确的。当我登录并手动进行 Maven 构建时,它会正确报告单元测试中的失败。
有什么想法可能导致问题吗?
提前致谢!