kestra-io / plugin-fs

https://kestra.io/plugins/plugin-fs/
Apache License 2.0
6 stars 7 forks source link

"io.kestra.plugin.fs.ssh.Command" not giving output in var variable #122

Open babithg opened 7 months ago

babithg commented 7 months ago

Expected Behavior

when we run below code the output of ls should be displayed on the output section, but that is not happening. I am using docker image kestra/kestra:latest-full

id: "command" type: "io.kestra.plugin.fs.ssh.Command" host: localhost port: "22" authMethod: PASSWORD username: foo password: pass commands: ['ls']

Actual Behaviour

When we run a flow with type: "io.kestra.plugin.fs.ssh.Command" , what ever command it run the output should be stored on the var variable and display in the output section

Steps To Reproduce

create a flow suing below blueprint and when you run its not giving proper output
id: "command" type: "io.kestra.plugin.fs.ssh.Command" host: localhost port: "22" authMethod: PASSWORD username: foo password: pass commands: ['ls']

Environment Information

Example flow

No response

loicmathieu commented 5 months ago

The io.kestra.plugin.fs.ssh.Command standard output will not be added as task outputs but as task logs. To create a task output you need to se the special lg format so that Kestra can extract the output from the logs, see https://kestra.io/docs/developer-guide/scripts/outputs-metrics#shell