Просмотр исходного кода

ShellExecutor 在目录中执行命令的方法更名为 execWithDir

reghao 2 месяцев назад
Родитель
Сommit
52c4e05b5e

+ 1 - 1
web/src/main/java/cn/reghao/bnt/web/devops/builder/tool/compiler/ShellCompiler.java

@@ -23,7 +23,7 @@ public class ShellCompiler implements CodeCompiler {
     public void compile(String appId, String appCompileHome) throws Exception {
         ShellResult result;
         for (String compileScript : compileCmds) {
-            result = shell.exec(appCompileHome, compileScript.split("\\s+"));
+            result = shell.execWithDir(appCompileHome, compileScript.split("\\s+"));
             if (!result.isSuccess()) {
                 throw new Exception(result.getResult());
                 //throw new Exception(JsonConverter.objectToJson(result.getResult()));