From 0ba120e8ab80d4687685837f6aa52460e7201813 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Tue, 16 Mar 2021 21:56:05 +0800 Subject: [PATCH] Fix shell task ${setValue(key,value)} is not working (#5067) Co-authored-by: dalekliuhan --- .../dolphinscheduler/server/worker/task/shell/ShellTask.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/shell/ShellTask.java b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/shell/ShellTask.java index fb0a76cff2..85f8ea094b 100644 --- a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/shell/ShellTask.java +++ b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/shell/ShellTask.java @@ -106,6 +106,7 @@ public class ShellTask extends AbstractTask { setAppIds(commandExecuteResult.getAppIds()); setProcessId(commandExecuteResult.getProcessId()); setResult(shellCommandExecutor.getTaskResultString()); + setVarPool(shellCommandExecutor.getVarPool()); } catch (Exception e) { logger.error("shell task error", e); setExitStatusCode(Constants.EXIT_CODE_FAILURE);