This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 0ba120e Fix shell task ${setValue(key,value)} is not working (#5067)
0ba120e is described below
commit 0ba120e8ab80d4687685837f6aa52460e7201813
Author: mrproliu <[email protected]>
AuthorDate: Tue Mar 16 21:56:05 2021 +0800
Fix shell task ${setValue(key,value)} is not working (#5067)
Co-authored-by: dalekliuhan <[email protected]>
---
.../org/apache/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 fb0a76c..85f8ea0 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);