1, the first is the installation of Jenkins, very simple, download the RPM package from the official website, and then a key installation (need Java environment, remember the allocation of variables are good)
2, visit xxx.xxx.xxx.xxx:8080 Display Jenkins home page is successful.
3, install Gitlab, this thing used me for a long time. The first is the issue of the RPM package. See http://blog.csdn.net/u011350541/article/details/52998623 this Blog
4, after the installation of Gitlab, access to xxx.xxx.xxx.xxx display
502 Whoops, Gitlab is taking too more than time to respond
Using GITLAB-CLT tail to view logs it is known that the port is occupied and the Gitlab is 8080 ports.
5, then VI/ETC/GITLAB/GITLAB.RB
There are two places to configure the port.
One is External_url address and port number need to be configured here
One is unicorn[' Port '] here also needs to configure addresses and ports
At the same time the above two ports must not be the same, I have been matched to 11000,11001, solve the 502 problem.
Then Gitlab-ctl reconfigure Gitlab-ctl restart
It should be noted that the configuration files for all subsystems of the entire Gitlab can be configured in/ETC/GITLAB/GITLAB.RB. Of course, it can be set up in the corresponding module alone
Like/VAR/OPT/GITLAB/GITLAB-RAILS/ETC/UNICORN.RB.
Configure the port and address of the unicorn and then restart Gitlab on the line.
6, currently only two small software installed separately, not to the continuous integration of this step, the article will continue to update.
7, Jenkins Gitlab plug-in installation relies on more, I downloaded 11 plug-ins to complete the installation of Gitlab Plug-ins, offline installation methods can be referred to
http://blog.csdn.net/liyuming0000/article/details/46879583
8, Jenkins on the new project from Gitlab to get code, need to add public private key, public key to Gitlab, the private key to Jenkins new project. This Jenkins can get the latest code from Gitlab.
Download Address
http://updates.jenkins-ci.org/download/plugins/
Reference Links:
Jenkins Gitlab Continuous integrated packaging platform built http://blog.csdn.net/zgzhaobo/article/details/52002181