Get the App
SLTechnology News&Howtos  ›  Servers  › 

Remotely execute linux shell commands using jenkins on windows

Shulou Source: shulou.com Published: 2022-06-02 22:37:48 09月22日 Update

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;

Tags: Host plug-in selection command configuration task information global company can pass password server user script question service Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi MariaDB OPPO Reno Shulou Tech Info Shulou Information