def ant = new AntBuilder()
def command = "./myScript.sh"
ant.sshexec(host: "myHost", username: "myUsername", password: "myPassword", command: command, trust: "true")
For the above you will need the following library:
org.apache.ant
ant-jsch
1.8.2