Continuous integration platform to build jenkins

安装gitlab
1.安装基础环境
RHEL/CentOS 用户 #清华源地址
新建 /etc/yum.repos.d/gitlab-ce.repo,内容为
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
再执行
sudo yum makecache
sudo yum install gitlab-ce

yum install curl policycoreutils openssh-server openssh-clients postfix
systemctl start postfix
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum -y install gitlab-ce
gitlab-ctl reconfigure #编译gitlab
systemctl stop httpd #关闭httpd服务
gitlab-ctl restart #启动gitlab
Here Insert Picture Description

1. Installation java environment
yum -y install java-1.8.0

2.安装jenkins源
cd /etc/yum.repos.d/
wget httpd://pkg.jenkins.io/redhat/jenkins.repo

3. Install the public key
RPM --import http://pkg.jenkins.io/redhat/jenkins.io.key
4.yum mounted
yum the install -Y Jenkins
systemctl the restart Jenkins restart the service #
cat / var / lib / jenkins / secrets / initialAdminPassword
Here Insert Picture Description
Jenkins the URL of: http://192.168.0.200:8080/

Guess you like

Origin blog.csdn.net/weixin_43546282/article/details/91471850