[英]Jenkins not triggered by github-webhook
我采取了以下步驟:
但是沒有在 Jenkins 上觸發構建。 GitHub 掛鈎日志說:“輪詢尚未運行。”。 我怎樣才能讓它“開始”? 我該如何進一步調試?
編輯:我沒有在 Manage Jenkins -> Configure -> GitHub 中添加 GitHub 服務器,因為我遇到了身份驗證問題(但這將是一個不同的問題)。 這是 github webhooks 所必需的嗎?
EDIT2:我想出了如何將 GitHub API 添加到 Jenkins 配置(使用啟用了 git 鈎子訪問的個人訪問令牌)。 但這似乎沒有什么區別。
我找到了如何正確修復它。
首先。 在 Jenkins 管理 > 系統日志中設置 Jenkins 記錄器
添加日志記錄器,使用此配置
hudson.plugins.git.GitStatus - All
com.cloudbees.jenkins.GitHubWebHook - All
org.jenkinsci.plugins.github - All
第二。 再次扣動扳機。
並再次檢查記錄器。 就我而言,記錄器說
Skipped {ProjectName} because it doesn't have a matching repository.
第三。 檢查 webhook 請求確切來自的 webhook url。
它將在記錄器中指定如下:
Received PushEvent for https://github.com/{username}/{reponame} from {ip} ⇒ http://{your jenkins url}/github-webhook/
第四。 再次進入jenkins項目配置,
檢查整個 github url 與步驟 3 中的https://github.com/ {username}/{reponame} 完全相同。
終於沒有 .git 了。
我希望這個答案對你有幫助。 謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.