refactor(测试计划): 合并jenkins和本地执行测试计划的方法

This commit is contained in:
CaptainB 2022-04-19 13:24:57 +08:00 committed by 刘瑞斌
parent d35406be9b
commit 228eca1367
1 changed files with 0 additions and 11 deletions

View File

@ -183,17 +183,6 @@ public class TestPlanController {
return PageUtils.setPageInfo(page, testPlanProjectService.getProjectByPlanId(request));
}
@PostMapping("/testplan/jenkins")
public String runJenkins(@RequestBody TestplanRunRequest testplanRunRequest) {
ApiRunConfigDTO api = new ApiRunConfigDTO();
api.setMode(testplanRunRequest.getMode());
api.setResourcePoolId(testplanRunRequest.getResourcePoolId());
api.setOnSampleError(false);
api.setReportType("iddReport");
String apiRunConfig = JSONObject.toJSONString(api);
return testPlanService.run(testplanRunRequest.getTestPlanId(), testplanRunRequest.getProjectId(), testplanRunRequest.getUserId(), testplanRunRequest.getTriggerMode(),null, apiRunConfig);
}
@PostMapping("/copy/{id}")
@SendNotice(taskType = NoticeConstants.TaskType.TEST_PLAN_TASK, event = NoticeConstants.Event.CREATE, mailTemplate = "track/TestPlanStart", subject = "测试计划通知")
public TestPlan copy(@PathVariable String id) {