Jenkins upload site Too many files through FTP too slow and unstable, switch to pressure pack upload and re-unzip the idea (ASP)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.