瀏覽代碼

更新 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()));
             }
         }
     }