Jenkins 2.32.1,所有插件今天更新到最新版本。我有一些老版本的插件,所以我不認爲這只是一個最近的插件錯誤。爲什麼詹金斯在推送到Github時不會構建我的項目?
當我在Jenkins UI中詢問它時,我的項目沒有問題。當我將它配置爲輪詢時,它也可以正常工作。但是,我無法通過推送Github來啓動它。
在我的項目的配置,
- 「Github的項目」被選中和URL(https://github.com/myorg/myrepo/)輸入低於
- 「當一個變化是推到GitHub上建立」被選中
- 和再有就是
在Github上的一面,我有
網絡掛接交付是成功的,即返回HTTP狀態200
在https://jenkins.myorg.com/job/api/GitHubPollLog/我看到
Last GitHub Push
Started on Jan 11, 2017 10:33:41 PM
Using strategy: Default
[poll] Last Built Revision: Revision ee4b3fe5b57ecd5ae5875bce573b32bb60074dfa (refs/remotes/origin/master)
using GIT_SSH to set credentials
> git ls-remote -h [email protected]:myorg/myrepo.git # timeout=10
Found 2 remote heads on [email protected]:myorg/myrepo.git
Using strategy: Default
[poll] Last Built Revision: Revision ee4b3fe5b57ecd5ae5875bce573b32bb60074dfa (refs/remotes/origin/master)
using GIT_SSH to set credentials
> git ls-remote -h [email protected]:myorg/myrepo.git # timeout=10
Found 2 remote heads on [email protected]:myorg/myrepo.git
Done. Took 2 sec
No changes
「最後建成修訂」 行做的確說出最近修建的修訂(手動)的SHA。但是有一些變化,因爲我只是爲了測試而推出了一個虛假更新。
在詹金斯的主要日誌我看到
Jan 11, 2017 10:33:41 PM INFO
org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent
Received POST for https://github.com/myorg/myrepo
Jan 11, 2017 10:33:41 PM INFO
org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run
Poked api
,僅此而已。
我知道類似的問題已經被問了很多次。我已經檢查了所有提到的注意事項在
- Jenkins-Build when a change is pushed to GitHub option is not working
- How to trigger a Jenkins build when a push is made to a private github repository
沒有成功,並看了很多別人而任何其他的洞察力。有什麼建議麼?