소스 검색

更新 ShellCompiler 的 result 失败信息提取

reghao 1 년 전
부모
커밋
1238f95078
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      web/src/main/java/cn/reghao/devops/web/mgr/build/tool/compiler/ShellCompiler.java

+ 2 - 1
web/src/main/java/cn/reghao/devops/web/mgr/build/tool/compiler/ShellCompiler.java

@@ -26,7 +26,8 @@ public class ShellCompiler implements CodeCompiler {
         for (String compileScript : compileCmds) {
             result = shell.exec(appCompileHome, compileScript.split("\\s+"));
             if (!result.isSuccess()) {
-                throw new Exception(JsonConverter.objectToJson(result.getResult()));
+                throw new Exception(result.getResult());
+                //throw new Exception(JsonConverter.objectToJson(result.getResult()));
             }
         }
     }