fix: 修复jenkins执行接口之后没通知的问题
--bug=1009217 --user=刘瑞斌 【jenkins】执行完jenkins后没有发通知 https://www.tapd.cn/55049933/s/1087534
This commit is contained in:
parent
c0ce7abed7
commit
f29aab8e52
|
@ -9,4 +9,5 @@ public class ApiTestReportVariable extends ApiTestReport {
|
||||||
public String executor;
|
public String executor;
|
||||||
public String environment;
|
public String environment;
|
||||||
public String principal;
|
public String principal;
|
||||||
|
private String projectId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,6 +107,7 @@ public class TestResultService {
|
||||||
reportTask.setPrincipal(principal);
|
reportTask.setPrincipal(principal);
|
||||||
reportTask.setExecutionTime(DateUtils.getTimeString(scenarioReport.getUpdateTime()));
|
reportTask.setExecutionTime(DateUtils.getTimeString(scenarioReport.getUpdateTime()));
|
||||||
reportTask.setEnvironment(environment);
|
reportTask.setEnvironment(environment);
|
||||||
|
reportTask.setProjectId(scenarioReport.getProjectId());
|
||||||
|
|
||||||
updateScenarioTestCaseStates(dto.getTestId(), dto.getRunMode());
|
updateScenarioTestCaseStates(dto.getTestId(), dto.getRunMode());
|
||||||
if (reportTask != null) {
|
if (reportTask != null) {
|
||||||
|
|
Loading…
Reference in New Issue