Kri*_*hna 8 git pipeline github jenkins multibranch-pipeline
在 Jenkins 上,在 Jenkins 上使用“Github”设置多分支设置时,我收到奇怪的错误:
Error validating repository information. Credentials ok.
Run Code Online (Sandbox Code Playgroud)
但是,相同的凭据适用于“git”作为“添加源”类别,但如果添加为“添加源”,则不适用于“github”。这是 github 的实际凭证,我可以登录 github 门户,不确定这里发生了什么。任何指点。谢谢
这通常是由于GitHub API“获取存储库”无法检索您的存储库造成的:
Caused: org.kohsuke.github.GHFileNotFoundException: https://github.organization.com/api/v3/repos/<user>/<repo> {"message":"Not Found","documentation_url":"https://developer.github.com/enterprise/2.20/v3/repos/#get"}
at org.kohsuke.github.GitHubClient.interpretApiError(GitHubClient.java:451)
at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:382)
at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:326)
Run Code Online (Sandbox Code Playgroud)
仔细检查您自己的“原因”,看看是否涉及相同的 API,以及使用的 URL 是否正确。
| 归档时间: |
|
| 查看次数: |
4531 次 |
| 最近记录: |