tags: [jenins]
categories: [CICD]
前言
jekins自动化部署实践
yum -y install policycoreutils openssh-server openssh-clients postfix
systemctl enable sshd && sudo systemctl start sshd
systemctl enable postfix && systemctl start postfix
Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-12.4.2-ce.0.el6.x 86_64.rpm 安装: rpm -i gitlab-ce-12.4.2-ce.0.el6.x86_64.rp
下载启动Jenkins
插件安装
配置
问题
- GIT中,仓库地址和项目主页是不一样的,我的项目地址:https://github.com/bwensun/BLOG,我的仓库地址:https://github.com/bwensun/BLOG.git
- 凭据在Jenkins凭据 - 系统 -全局凭据这里
- 添加仓库时,提示无法使用远程命令https,开始以为是服务器端口做了限制,事实上关键信息在后面,我的GIT插件不能通过https协议来拉代码,所以判定不了这个仓库的存在性,使用git://github.com/bwensun/BLOG.git来提代该协议即可