3
我已經爲Jenkins添加了證書,可以添加webhook。對於我做了以下內容:如何讓Jenkins自動爲Pipeline工作添加webhook?
- 生成於GitHub的個人訪問令牌與
repo
和admin:repo_hook
範圍。 - 添加了帶有相應令牌的
Secret text
憑證。 - 在
Manage Jenkins > Configure System
的上一步中添加了具有憑據的GitHub服務器。
但是當我建立流水線作業,我在系統日誌中看到:
GitHub webhooks activated for job p1 with [] (events: [PUSH])
隨着自由式項目中,我得到:
GitHub webhooks activated for job fsp1 with [GitHubRepositoryName[host=github.com,username=user,repository=repo]] (events: [PUSH])
PING webhook received from repo <https://github.com/user/repo>!
自由泳項目中,我做了以下內容:
- 對源代碼管理器選項卡選擇Git,指定的存儲庫URL和憑據(用戶名和密碼)。
- 檢查GITScm輪詢的GitHub鉤觸發器。
管道的工作:
- 經過GitHub的項目和指定的存儲庫URL。
- CheckedGITScm輪詢的GitHub鉤觸發器。
我缺少什麼?
鏈接到您的[問題](https://issues.jenkins-ci.org/browse/JENKINS-45120)。 –
我猜想行爲源自方法'parseAssociatedNames(Item item,Collection result)',在類[GitHubRepositoryNameContributor]中(https://github.com/jenkinsci/github-plugin/blob/93d40692ff3866705175624e93ec584d4ac88132/src/)主/ JAVA/COM/CloudBees的/詹金斯/ GitHubRepositoryNameContributor.java)。 「Item」的類型有很多可能導致這些問題的條件。 –