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.