After the local processing of the site files to upload, it may be due to some Web page diagram caused by the FTP upload instability, interruption, or file occupancy problems.
Then change a kind of realization idea, need to use Jenkins tool Jenkins-cli.jar.
Solution Ideas:
1, local processing good Austrian uploaded site files, through the compression software packaging, wherein the name of the pressure pack is regular, such as the form of date +buildid.
2, upload to the external Web directory with the FTP plugin.
3, the external network of the machine also installs the Jenkins environment, and new good one job, this job increases the parameterization of the construction, the parameters of Buildid, and then add batch processing to buildid the compression package to find and extract.
4, the local Jenkins to build a good job, and then through the Jenkins-cli.jar call the external network decompression job decompression.
This solves the upload speed limit for fragmented files.
Main steps to resolve:
1. Add parametric build on job on external network machine (2.x has installed this plugin by default, no additional installation required)
2, the external network on the machine to get the parameters on the job, you can use the parameters of batch processing to find decompression
3, the local Jenkins processing good packaging site files, through the Jenkins-cli.jar remote call
Java-jar jenkins-cli.jar-s http://192.168.199.2:10000/build test-p buildid=1--username Administrator-- PasswordD Admin
The above means: Build test project, passed buildid This parameter value is 1, followed by the login administrator account password.
Jenkins upload site Too many files through FTP too slow and unstable, switch to pressure pack upload and re-unzip the idea (ASP)