这篇文档介绍如何用Jenkins集成Github,并配置github hooks实现自动触发Jenkins
Prerequisites
- 已经搭建好Jenkins服务器
- 已经创建好github账号
设置
Jenkins global configure
- 安装gitlab plugins
点击"Manage Jenkins" -> "Manage plugins" -> "Available", 搜索"GitHub Integration Plugin" 并点击"install without restart" - 配置Jenkins github server
点击"Manage Jenkins" → "Configure System"→ "GitHub"→ "Add GitHub Server"
API URL 输入gitlub的网址: "https://api.github.com"