-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell Command v0.21 doesn't support Process' workingDir
anymore
#212
Comments
Thanks for raising this one, I'm able to reproduce even on Docker runner. id: new_shell_with_file
namespace: qa
inputs:
- id: file
type: FILE
tasks:
- id: shell
type: io.kestra.plugin.scripts.shell.Commands
inputFiles:
data.txt: "{{inputs.file}}"
outputFiles:
- out.txt
commands:
- cp {{workingDir}}/data.txt out.txt # FIXME Removing |
I am not sure if it is related to dynamic properties. @yuri1969 Which version of Kestra were you using before upgrading ? |
@mgabelle I've tested the The variable is defined by |
OK I see so with the new changes we render before getting to the Thank's @yuri1969 for investigating this. |
Thanks @mgabelle. Can you, please, investigate why unit tests (e.g. |
I guess I know why. Using For instance :
Unfortunately while refactoring I'd used the 'of' static method without knowing it would have side effect with pebble. |
Describe the issue
Using Shell Plugin version 0.21 the
io.kestra.plugin.scripts.shell.Commands
task fails at rendering theworkingDir
Pebbble variable.Execution stacktrace
Note unit tests still pass correctly.
I didn't have time to properly debug the issue but it feels like the introduction of rendering the value of
commands
"early" in 0699cf2 might be involved.Example flow taken directly from
io.kestra.plugin.core.runner.Process
docs:Environment
The text was updated successfully, but these errors were encountered: