Fix shell task ${setValue(key,value)} is not working (#5067)

Co-authored-by: dalekliuhan <dalekliuhan@didiglobal.com>
xingchun-chen-patch-1
mrproliu 2021-03-16 21:56:05 +08:00 committed by GitHub
parent 6bf5031f45
commit 0ba120e8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ public class ShellTask extends AbstractTask {
setAppIds(commandExecuteResult.getAppIds()); setAppIds(commandExecuteResult.getAppIds());
setProcessId(commandExecuteResult.getProcessId()); setProcessId(commandExecuteResult.getProcessId());
setResult(shellCommandExecutor.getTaskResultString()); setResult(shellCommandExecutor.getTaskResultString());
setVarPool(shellCommandExecutor.getVarPool());
} catch (Exception e) { } catch (Exception e) {
logger.error("shell task error", e); logger.error("shell task error", e);
setExitStatusCode(Constants.EXIT_CODE_FAILURE); setExitStatusCode(Constants.EXIT_CODE_FAILURE);