Hi all,
I’m using a freestyle jenkins project and wanted to execute a shell script on a remote host only when the build is manually aborted. Is there any feature/plugins to support this requirement ?
I’ve used : ssh, ssh-agent and publish-over-ssh plugins , but can’t see the option to ‘execute the ssh commands to remote server’ in ‘Add post-build action’ tab .
There’s ‘Post Build Task’ plugin as well, but I believe there’s no option to execute scripts over remote machine ??
Also, I’m not sure how can I add execute the script only when the build is aborted .
Any help is most welcome!