这篇文档介绍如何用Jenkins集成Github,并配置github hooks实现自动触发Jenkins
上面截图中的Credentials需要在github中配置验证。登录到github 点击 "settings"→ "Developer settings"→ "Personal access tokens"→ "Generate new token", 然后输入tocken名称,选择 "repo" 和 "admin:repo_hook", 然后点击 "Generate tocken"
拷贝tocken
返回Jenkins页面,点击Credentails,click "Add", Kind choice "Secret text", Secret input tockenclick "Test connection" to verify connection
Click "Advance", select "Specify another hook url for GitHub configuration", copy the URL, next step we will use it(configure github webhook)
click "Save" to save the configuration