diff --git a/backend/src/main/java/io/metersphere/api/controller/ApiAutomationController.java b/backend/src/main/java/io/metersphere/api/controller/ApiAutomationController.java index 4116a3d7f5..8159e8b58b 100644 --- a/backend/src/main/java/io/metersphere/api/controller/ApiAutomationController.java +++ b/backend/src/main/java/io/metersphere/api/controller/ApiAutomationController.java @@ -206,7 +206,7 @@ public class ApiAutomationController { public String runByJenkins(@RequestBody RunScenarioRequest request) { request.setExecuteType(ExecuteType.Saved.name()); request.setTriggerMode(TriggerMode.API.name()); - request.setRunMode(ApiRunMode.JENKINS.name()); + request.setRunMode(ApiRunMode.SCENARIO.name()); // 回退 return apiAutomationService.run(request); }