Build an automatic server using Hudson in Ubuntu 14.04

Source: Internet
Author: User

Build an automatic server using Hudson in Ubuntu 14.04

Environment: Ubuntu 14.04 _ x64

Note: A simple example of building an automatic server using hudson and git

Install hudson and related plug-ins

Install hudson

The installation command is as follows:

Sudo sh-c "echo 'deb http://hudson-ci.org/debian/'>/etc/apt/sources. list. d/hudson. list"
Sudo apt-get update
Sudo apt-get install hudson

For other environments, refer to the following link:

Http://wiki.hudson-ci.org/display/HUDSON/Installing+Hudson

Start the hudson Server:

Sudo service hudson start

Web access:

The default port is 8080, for example, http: // 192.168.1.81: 8080/

Install plug-ins

Install the git Plugin:

• System Management plugin Available-> Search

• Enter git in the search box

• Select "Hudson GIT plugin" in the search results and perform the installation.

Create an automatic build project

• Set the Project name:

Project name: test10000rabbitmqmgr

• Set the automatically built working directory:

Click the Advanced button in Advanced Job Options, select "Use M workspace", and enter the working Directory of the project in the Directory editing box, such as/tmp/Dailybuild/rabbitmqMgr.

• Add Source Code address:

Source Code Management

Select the Git radio button and enter the git address in Repositories, such as: https://github.com/bkjia/rabbitmqCppClient.git

• Add build command:

Enter the Command to be executed in the Build option Command, such as the project:

Make

• Click save to save the project configuration.

• Execute build

Go back to the homepage, click "testbench rabbitmqmgr", and click "build now" on the subpage to start building. Click the console icon in Build History to view the console output during the Build process. If the Build is successful, you can see the green button in Build History on the side. If the Build fails, the red button appears.

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.