# 参考:https://packages.gitlab.com/gitlab/gitlab-ce/install#bash-rpm
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh|bash
yum install -y gitlab-ce
gitlab-ctl reconfigure
gitlab-ctl start
gitlab-ctl status
gitlab-ctl stop
gitlab-ctl restart
ps -aux|grep runsvdir
yum install -y java-1.8.0-openjdk
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install -y jenkins
systemctl start jenkins
systemctl enable jenkins
systemctl status jenkins
vim /etc/sysconfig/jenkins
# 修改$JENKINS_USER,并去掉当前行的注释
$JENKINS_USER='work'
chown -R work:work /var/lib/jenkins
chown -R work:work /var/cache/jenkins
chown -R work:work /var/log/jenkins
systemctl restart jenkins
ps -ef|grep jenkins
1.Git Parameter # 构建参数
2.build-name-setter # ${BUILD_NUMBER}-$moudle-$release_tag
3.user build vars plugin # 获取运行job的用户名
4.Jenkins修改本地默认主题
主题URL:http://afonsof.com/jenkins-material-theme/
1) Jenkins安装 Simple Theme插件
2) 浏览器下载stylish css导入服务器。放到 /var/cache/jenkins/war/css
3) 然后在Jenkins的系统配置中添加Theme配置 http://10.0.0.100:8080/css/jenkins-material-theme.css
yum install -y ansible
Jenkins+GitLab+Ansible-playbook的环境安装(yum)
原文:https://www.cnblogs.com/jie-fang/p/11671595.html