Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Remotely execute linux shell commands using jenkins on windows

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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;

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report