jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-55949] Arrange RSS (or something like it) as a transport for GitHub webhooks

オープン
#1,237 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
component:github-branch-source-plugin imported-jira-issue priority:minor resolution:unresolved
主要言語
Java
スター
217
フォーク
398
平均マージ
30分
マージ済み PR(30日)
1

説明

In our company, the Jenkins master is in a private network, and while the corporate security permits it to initiate connections to the internet to download updates, artifacts, etc. it may not receive any connections. We evaluated some tunneling services, so the Github hook URL would be set to that service endpoint and pop out inside the perimeter as a POST to our jenkins, but even that was not permitted.

So the next reasonable option would be to have a Jenkins master keep a persistent connection to some web service on the internet, perhaps an RSS source, and receive lines equivalent to webhook payloads over that transport. So here the question is two-fold:



  • extend the webhook support to not only receive POSTs, but be able to instead persistently connect somewhere and receive hooks there;

  • provide a service that would produce the RSS feed like that. Two most reasonable places that come to mind would be either arranging with GitHub that they provide such a service, probably as part of the REST API so it can be tied to logins, organizations and repos in question, or having Cloudbees host a retranslator that would receive hooks from Github and feed them over this service, with Jenkins masters all over the world connecting to the retranslator with some unique IDs (that they set up in the webhook on Github side)

  • also to consider, this might be a more generic problem than just for github, since there are many other supported SCM types and SCM service providers, so maybe a coordinated solution higher in the stack would be the more reasonable choice.

---
Originally reported by jimklimov, imported from: Arrange RSS (or something like it) as a transport for GitHub webhooks


  • status: Open
  • priority: Minor
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

In our company, the Jenkins master is in a private network, and while the corporate security permits it to initiate connections to the internet to download updates, artifacts, etc. it may not receive any connections. We evaluated some tunneling services, so the Github hook URL would be set to that service endpoint and pop out inside the perimeter as a POST to our jenkins, but even that was not permitted.

So the next reasonable option would be to have a Jenkins master keep a persistent connection to some web service on the internet, perhaps an RSS source, and receive lines equivalent to webhook payloads over that transport. So here the question is two-fold:



  • extend the webhook support to not only receive POSTs, but be able to instead persistently connect somewhere and receive hooks there;

  • provide a service that would produce the RSS feed like that. Two most reasonable places that come to mind would be either arranging with GitHub that they provide such a service, probably as part of the REST API so it can be tied to logins, organizations and repos in question, or having Cloudbees host a retranslator that would receive hooks from Github and feed them over this service, with Jenkins masters all over the world connecting to the retranslator with some unique IDs (that they set up in the webhook on Github side)

  • also to consider, this might be a more generic problem than just for github, since there are many other supported SCM types and SCM service providers, so maybe a coordinated solution higher in the stack would be the more reasonable choice.


コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reviewing the github-branch-source-plugin's existing webhook support and how Jenkins receives SCM events. The issue does not name files or tests; completion would require deciding on a persistent outbound transport, defining the service that provides it, and determining whether the solution belongs in this plugin or a higher-level Jenkins component.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github, java
領域
ci-cd, devops, networking
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
15/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。