Quellcode durchsuchen

update BuildDeployPageController

reghao vor 1 Jahr
Ursprung
Commit
a9f738d455

+ 1 - 6
web/src/main/java/cn/reghao/devops/web/mgr/app/controller/page/BuildDeployPageController.java

@@ -95,16 +95,11 @@ public class BuildDeployPageController {
     @ApiOperation(value = "构建结果页面")
     @GetMapping("/build/result")
     public String buildLogResultPage(@RequestParam("buildLogId") String buildLogId, Model model) {
-        List<String> list = new ArrayList<>();
         String content;
         if (NotAvailable.na.getDesc().equals(buildLogId)) {
             content = "构建结果暂不可用";
-            list.add("构建结果暂不可用");
         } else {
-            String msg = appBuildQuery.getBuildResult(buildLogId);
-            content = msg;
-            list = Arrays.stream(msg.split(System.lineSeparator()))
-                    .collect(Collectors.toList());
+            content = appBuildQuery.getBuildResult(buildLogId);
         }
 
         String html = StringUtil.txtToHtml(content);