我正在使用安装了最新插件的 jenkins 2.64。
我正在尝试在 jenkins 中设置 git repo 并提供凭据,但给出错误无法连接状态代码为 128 的存储库。
Cloning repository https://github.com/somerepository.git
> git init /Users/kumar/.jenkins/workspace/sample # timeout=10
Fetching upstream changes from https://github.com/somerepository.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git fetch --tags --progress https://github.com/somerepository.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress https://github.com/somerepository.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: remote: Repository not found.
fatal: repository 'https://github.com/somerepository.git/' not found
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1903)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1622)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:545)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1067)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1212)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:415)
ERROR: null
Finished: FAILURE
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?
注意:对于以前版本的 jenkins,在管理 jenkins->config 中有 git 部分,我们可以在其中放置我们的 git 可执行文件。但在新版本的 jenkins 中没有找到 git 部分。
编辑:添加日志
从错误中获取上游更改
https://github.com/somerepository.git:克隆远程存储库“origin”时出错 hudson.plugins.git.GitException:命令“git fetch --tags --progresshttps://github.com/somerepository.git+refs/heads/ :refs/remotes/origin/ ”返回状态代码 128:stdout :stderr:远程:找不到存储库。
通常 https git URL 末尾不会有 .git。请确认您的网址。我猜你正在尝试访问 ssh url。
| 归档时间: |
|
| 查看次数: |
9685 次 |
| 最近记录: |