Using Jenkins to build the publishing system

Source: Internet
Author: User
Goal

As the project deployed in the company intranet, each release code to be uploaded through the fortress machine, and then into the intranet download, and then RZ to the server, and finally unzip.
Each update is so repetitive that it is intended to deploy Jenkins as a publishing system on the Intranet machine. The following features are implemented:
1. Upload Code Compression Package
2. Extract to Fixed directory Jenkins installation

This is a lot of online tutorials, a bunch of search, recommended: http://www.liaoxuefeng.com/article/001463233913442cdb2d1bd1b1b42e3b0b29eb1ba736c5e000

Download Jenkins:
Run the following command to start the service:

Java-jar jenkins.war configuration Nginx

Jenkins is bound to 8080 ports, forwarded via Nginx: http://bookong.iteye.com/blog/1961823 Jenkins Configuration manual upload attachment

Google "Jenkins upload local Files" to find a large circle, have not met what I need, are said to install publish over SSH Plug-ins, this plug-in implementation is uploaded in the server, rather than I want to upload my local files, The final discovery is that there is a file parameter in the parameterized build process:

After saving, you can upload a selection:
automatically extract to fixed directory

Project configuration-"Build"-"Execute shell"

#-o Force Overwrite-d specified directory
unzip-o/home/jenkins/webpack.zip-d/data/
Note that it is recommended that you create a new Jenkins user to start the Jenkins service execute the shell command if you have sufficient permissions to have an automatic publishing system, the release code is easy to save time.

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.