一、安装对应的插件(一般来说默认都安装了)
| 插件名称 | 插件作用 |
|---|---|
| Credentials Plugin | 允许jenkins中存储认证的凭据 |
| Git client plugin | 运行jenkins使用git |
| Git plugin | 运行jenkins集成git |
| GitLab | 插件允许GitLab触发Jenkins构建并在GitLab UI中显示结果。 |
| Gitlab Hook | 启用Gitlab web钩子来触发Gitlab项目上的SMC轮询 |
| GitLab Authentication | gitlab身份验证 |
">4.添加git连接(url在gitlab上,主要配置cerdentials)
5.credentials(添加jenkins用户,注意这里填写私钥)