Jenkins 升级到2.42 Junit test report 出现错误的解决

从Jenkins 2.39升级到 Jenkins 2.42,在构建的时候出现错误。

Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
Finished: FAILURE

期间没做过任何的修改,只是将本地的 gradle 从2.11升级到了gradle 3.3

进入项目的配置选择,发现红色的提示。

这里写图片描述

根据Jenkins的提示:

'build/test-results/*.xml' doesn't match anything: 'build' exists but not 'build/test-results/*.xml'

Fileset ‘includes’ setting that specifies the generated raw XML report files, such as ‘myproject/target/test-reports/*.xml’. Basedir of the fileset is the workspace root.

修改了设置的格式,由

build/test-results/*.xml

改为

build/test-results/**/*.xml

重新构建,即可通过。

格式参考:
http://ant.apache.org/manual/Types/patternset.html

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值