fix(jenkins): 修复jenkins执行接口用例报null的问题

This commit is contained in:
CaptainB 2021-11-25 12:00:09 +08:00 committed by 刘瑞斌
parent e7e0df2840
commit 73fe715c95
1 changed files with 1 additions and 3 deletions

View File

@ -800,9 +800,7 @@ public class ApiTestCaseService {
//通过测试计划id查询环境
request.setReportId(request.getTestPlanId());
}
if (StringUtils.equals(request.getRunMode(), ApiRunMode.JENKINS.name())) {
request.setReportId(request.getEnvironmentId());
}
// 多态JSON普通转换会丢失内容需要通过 ObjectMapper 获取
if (testCaseWithBLOBs != null && StringUtils.isNotEmpty(testCaseWithBLOBs.getRequest())) {
try {