簡體   English   中英

拉取 github 項目時 jenkins 上的憑據錯誤無效

[英]Invalid credential error on jenkins while pulling a github project

我在 docker 容器中有一個 Jenkins 2.150.1。 要安裝這個 Jenkins,我只使用jenkinsci/blueocean:1.9.0鏡像。

我創建了一個管道,然后嘗試使用我的 GitHub 憑證在一個私人倉庫上做一些 jenkins 的事情。 但是,我收到以下錯誤:

Scan Repository Log

Started
[Thu Dec 13 15:09:49 GMT 2018] Starting branch indexing...
15:09:49 Connecting to https://api.github.com using Noon/****** (Another try)
ERROR: [Thu Dec 13 15:09:50 GMT 2018] Could not update folder level actions from source 7230f2ea-dac0-4018-819a-3bc105b6850f
hudson.AbortException: Invalid scan credentials when using Noon/****** (Another try) to connect to  Owner/Repo on https://api.github.com
    at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieveActions(GitHubSCMSource.java:1672)
    at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:765)
    at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:591)
    at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
    at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
    at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
[Thu Dec 13 15:09:50 GMT 2018] Finished branch indexing. Indexing took 0.5 sec
FATAL: Invalid scan credentials when using Noon/****** (Another try) to connect to  Owner/Repo on https://api.github.com
Finished: FAILURE

我認為我的憑證有誤,我重新輸入了它。 然后再次。 然后再次。 我現在非常確信我的證書非常好,但問題是其他問題。 我確實找到了一些具有類似問題的舊錯誤報告,但問題早已得到解決。

盡管我在發布此消息之前解決了這個問題,但我還是決定發布並自行回答它,因為它真的很難弄清楚。

這不是日志問題,這是空間問題!

當我指定Jenkins應該去哪里拉源時,我輸入了項目的所有者,我輸入了“所有者”而不是“所有者”。 詹金斯沒有抱怨,仍然能夠自動完成“回購”部分。 問題后來才出現,並提示這個,非常誤導,錯誤信息。

這可能是一個應該報告的錯誤,但我不知道在哪里以及如何報告。

我在“所有者”字段中輸入的名稱無效,即使已填充存儲庫下拉列表。

我更新為使用我的組織名稱(根據 GitHub 網址 - https://github.com/ {org name}/{repo}),然后 Jenkins 能夠掃描該存儲庫。

下一個問題,jenkinsfile 的路徑不能以“/”開頭。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM