Skip to content

yuhiwa/digdag-plugin-sshresult

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digdag-plugin-sshresult

Digdag ssh_result> operator plugin to execute a remote command via ssh and storing output of shell to digdag store.

This plugin is compatible with ssh plugin and shresult plugin as long as it can.

Ssh Configuration is same as ssh plugin. Storing Configuration is same as shresult plugin.

Example


_export:
  ssh_result:
    host: host.add.re.ss
    user: username
    stdout_log: true # Output stdout log (default true)
    stderr_log: true # Output stderr log (default false)

  plugin:
    repositories:
      - https://jitpack.io
    dependencies:
      - com.github.yuhiwa:digdag-plugin-sshresult:0.0.1

+step1:
  ssh_result>: hostname
  destination_variable: resultset
  stdout_format: text

+step2:
  echo>: ${resultset}

Development

1) build

./gradlew publish

Artifacts are build on local repos: ./build/repo.

2) run an example

digdag selfupdate

rm -rf .digdag/plugin
digdag run -a --project sample plugin.dig -p repos=`pwd`/build/repo

Maintainers

  • Yuki Iwamoto(@yuhiwa)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages