I tried the following:

node {
 step([$class: 'org.jvnet.hudson.plugins.SSHBuilder',
       siteName: 'me@myserver:22',
       command: 'echo hello myserver|tee testJenkins'
      ])
}

But if I'm guessing right, this plugin requires an update to be compatible with 
Workflow.  Here's the error I get.


java.lang.ClassCastException: class org.jvnet.hudson.plugins.SSHBuilder
        at java.lang.Class.asSubclass(Class.java:3037)
        at 
org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:183)
        ...
        at 
com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15)
        at WorkflowScript.run(WorkflowScript:2)



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7c2d5fec-d33d-41d7-86fb-0fcfabebfa46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to