Bladeren bron

更新 ShellCompiler 的 result 失败信息提取

reghao 1 jaar geleden
bovenliggende
commit
1238f95078

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