2017-07-08 32 views
1

看起來像我失去了一些東西。詹金斯多分支項目和Github的網絡掛接

我成立了multibrunch喬恩·詹金斯與像[email protected]/repo.git它掃描的所有電流支路SCM。

然後,我設置了網絡掛接在Github上爲所有事件URL http://jenkins.someorg.com/github-webhook/

Github上表明事件已成功發送。 Jenkins日誌顯示事件已收到蜜蜂。

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

但什麼也沒有發生在詹金斯工作本身...

+0

找到解決方案。我正在使用Git回購。但是當我用API密鑰切換到Github時,一切正常 – yurybubnov

+0

是的,我在回答中提到了它 – VonC

回答

1

仔細檢查「Setting up a GitHub webhook in Jenkins

您需要確保您的構建觸發設置爲「建設時,改變推到GitHub上」,用的當然一個GitHub庫網址;)

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

詹金斯應該有一個SSH密鑰已屁股與所需的GitHub項目相關聯。

1

找到解決方案。我正在使用Git回購。但是,當我切換到Github上與API密鑰,一切工作