Remotely execute linux shell commands using jenkins on windows
Recently, the company built jenkins on windows, but the release is to be released to linux servers, so there will be problems executing shell commands on automatic deployment, so I looked for it;
Jenkins has a shell script plugin:
shell plugin
This plugin executes shell commands remotely using SSH protocol.
Install this plug-in, and then go to the build task to select build, to the post-build operation, you will find that there is one item:
Excute shell script on remote host using ssh
Select this option, and then let you select the ssh host, here you need to go to the jenkins global configuration to configure the user and password information of the ssh host;
After completion, you can execute shell commands from remote hosts through this plug-in;