Get the App
SLTechnology News&Howtos  ›  Servers  › 

Solve the problem that Jenkins uses SSH to configure remote directory error on Windows Server server

Shulou Source: shulou.com Published: 2022-06-03 05:19:04 09月21日 Update

When configuring the Publish over SSH plug-in for Jenkins, when it comes to the Remote Directory directory, if the server is Windows server and enter a path similar to D:\ apache-tomcat-7.0.53\ webapps, the following error will be reported:

Then many students found a lot of information, which showed that the configuration here was in the Linux environment, similar to / date and other configurations, suffering from being unable to find information to solve the problem, but the company's server was also a Windows server server, so they had no choice but to ask the teacher. In fact, the problem is very simple, just think about the principle of transmission.

First of all, FreeSSH is deployed on the Windows server server. Configure the Remote Directory directory on Jenkins by adding a /, and then click the test link button to display the success, as shown in the following figure:

Then, when deploying, transfer the war package directly to the corresponding user's directory on the server. For example, we configure administrator users, and then transfer the war package directly to this directory, as shown below:

Finally, you just need to move the war package in the batch file to the project under the corresponding Tomcat.

Summary: encounter problems, analyze problems, solve problems, continue to accumulate, and integrate.

More highlights are in the video course of Brother Yang. Address: http://edu.51cto.com/lecturer/5811414.html

Tags: Server problem service configuration directory user data transmission wonderful successful integrated continuous company principle again address student project project button Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Tech Info NVidia macOS Xiaomi