|
@@ -95,16 +95,11 @@ public class BuildDeployPageController {
|
|
|
@ApiOperation(value = "构建结果页面")
|
|
@ApiOperation(value = "构建结果页面")
|
|
|
@GetMapping("/build/result")
|
|
@GetMapping("/build/result")
|
|
|
public String buildLogResultPage(@RequestParam("buildLogId") String buildLogId, Model model) {
|
|
public String buildLogResultPage(@RequestParam("buildLogId") String buildLogId, Model model) {
|
|
|
- List<String> list = new ArrayList<>();
|
|
|
|
|
String content;
|
|
String content;
|
|
|
if (NotAvailable.na.getDesc().equals(buildLogId)) {
|
|
if (NotAvailable.na.getDesc().equals(buildLogId)) {
|
|
|
content = "构建结果暂不可用";
|
|
content = "构建结果暂不可用";
|
|
|
- list.add("构建结果暂不可用");
|
|
|
|
|
} else {
|
|
} 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);
|
|
String html = StringUtil.txtToHtml(content);
|