This Plugin was derived from the very cool SCP Plugin.
You can use the SSH Plugin to run shell commands on a remote machine via ssh.
First go to the global configuration page and add a SSH site.
For your job select a configured site and enter the shell commands that should be executetd before and after the build.
Log will look like this.
Skip to end of metadata Go to start of metadata