Gradle SSH Plugin provides SSH facilities such as command execution or file transfer on Gradle.
https://gradle-ssh-plugin.github.io
This is an open source software licensed under the Apache License Version 2.0. Feel free to open issues or pull requests.
Gradle SSH Plugin internally uses Groovy SSH library. It depends on JSch.
The document is maintained on the repository of Groovy SSH.
We can run the acceptance test to verify behavior of the plugin on Gradle.
# Run sshd
./gradle-ssh-plugin/acceptance-test/fixture/run-sshd.sh
# Run the test
./gradlew :gradle-ssh-plugin:acceptance-test:test
# Stop sshd
docker stop sshd
Note that the test depends on int128/sshd and keys are hardcoded in .circleci/config.yml
.
You can regenerate keys by the following commands:
ssh-keygen -m PEM -t rsa -f keys/id_rsa
ssh-keygen -A -f keys/
Push a versioned tag to GitHub and CI will upload the artifact to Bintray.