From 228eca1367e3c2471df69bd0f6d4ed7ec55e31c9 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 19 Apr 2022 13:24:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E5=90=88=E5=B9=B6jenkins=E5=92=8C=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/controller/TestPlanController.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/controller/TestPlanController.java b/backend/src/main/java/io/metersphere/track/controller/TestPlanController.java index 9e2bf5f555..85817e23c5 100644 --- a/backend/src/main/java/io/metersphere/track/controller/TestPlanController.java +++ b/backend/src/main/java/io/metersphere/track/controller/TestPlanController.java @@ -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) {