fix: 修复jenkins执行接口之后没通知的问题

--bug=1009217 --user=刘瑞斌 【jenkins】执行完jenkins后没有发通知 https://www.tapd.cn/55049933/s/1087534
This commit is contained in:
CaptainB 2021-12-28 11:25:02 +08:00 committed by fit2-zhao
parent c0ce7abed7
commit f29aab8e52
2 changed files with 2 additions and 0 deletions

View File

@ -9,4 +9,5 @@ public class ApiTestReportVariable extends ApiTestReport {
public String executor;
public String environment;
public String principal;
private String projectId;
}

View File

@ -107,6 +107,7 @@ public class TestResultService {
reportTask.setPrincipal(principal);
reportTask.setExecutionTime(DateUtils.getTimeString(scenarioReport.getUpdateTime()));
reportTask.setEnvironment(environment);
reportTask.setProjectId(scenarioReport.getProjectId());
updateScenarioTestCaseStates(dto.getTestId(), dto.getRunMode());
if (reportTask != null) {