Use gradle-ssh-plugin in custom task

(Immanuel Smits) #1

I am trying to create a custom task which will run a bunch of commands on a bunch of remote servers via ssh in parallel. The list of servers and commands are provided at runtime from a database.

I’ve used the gradle-ssh-plugin from org.hidetake in previous builds but I’m wondering if it is possible to use the features provided by the plugin in a custom task?

(uklance) #2

Taking a quick look at the build.gradle on github I see this

compile('org.hidetake:groovy-ssh:2.8.0') {
    exclude module: 'groovy-all'

I’d guess you could use groovy-ssh directly