Jenkins多分支项目和Github webhooks

时间:2017-07-08 00:23:23

标签: github jenkins jenkins-pipeline

看起来我错过了什么。

我在Jenkins中使用SCM设置了multibrunch jon,如git@github.someorg.com/repo.git它扫描了所有当前分支。

然后我在Github中为所有事件设置了URL http://jenkins.someorg.com/github-webhook/的Web挂钩。

Github显示该事件已成功发送。 詹金斯日志显示事件已经收到了蜜蜂。

Received PUSH for https://github.someorg.com/repo from IP ⇒ http://jenkins.someorg.com/github-webhook/

但詹金斯的工作本身并没有发生......

2 个答案:

答案 0 :(得分:1)

仔细检查“Setting up a GitHub webhook in Jenkins

您需要确保将Build Trigger设置为“将更改推送到GitHub时构建”,当然还有GitHub repo url;)

https://i1.wp.com/thepracticalsysadmin.com/wp-content/uploads/2014/03/jenkins4.jpg?resize=300%2C200&ssl=1

Jenkins应该有一个已经与所需GitHub项目相关联的SSH密钥。

答案 1 :(得分:1)

找到解决方案。我正在使用Git repo。但是当我使用API​​密钥切换到Github时,一切正常

相关问题