背景
基于gitee自动化部署 把 服务器公钥 配置到 gitee ssh公钥中(https://gitee.com/profile/sshkeys)
配置凭证
配置两个凭证
- Gitee API 令牌 (https://gitee.com/profile/personal_access_tokens)
- SSH Username with private key 填写 gitee的用户名 和 部署服务器的私钥
创建项目
选择第一项


配置webhook
- jenkins生成 gitee webhook 密码
- 在gitee项目中设置 webhook
- 填写jenkins 地址 http://x.x.x.x/gitee-project/project-name 和上面生成的密码
来源:oschina
链接:https://my.oschina.net/fyzhu/blog/3211662
