Skip to content
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

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

Open
babithg opened this issue Apr 23, 2024 · 1 comment
Open
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working good first issue Great issue for new contributors

Comments

@babithg
Copy link

babithg commented Apr 23, 2024

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

  • Kestra Version: 0.16.1
  • Plugin version: io.kestra.plugin.fs.ssh.Command
  • Operating System (OS / Docker / Kubernetes): Amazon Linux release 2023.4.20240401 (Amazon Linux) / Docker Server Version: 25.0.3
  • Java Version (If not docker):

Example flow

No response

@babithg babithg added the bug Something isn't working label Apr 23, 2024
@anna-geller anna-geller added this to the v0.18.0 milestone May 8, 2024
@loicmathieu
Copy link
Member

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

@github-project-automation github-project-automation bot moved this to Backlog in Issues Jun 10, 2024
@anna-geller anna-geller removed this from the v0.18.0 milestone Aug 15, 2024
@anna-geller anna-geller added the area/plugin Plugin-related issue or feature request label Aug 15, 2024
@tchiotludo tchiotludo added good first issue Great issue for new contributors and removed kind/good-first-issue labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working good first issue Great issue for new contributors
Projects
Status: Backlog
Development

No branches or pull requests

4 participants