Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins无法从公共存储库中从git中提取代码_Git_Jenkins_Github_Jenkins Plugins - Fatal编程技术网

Jenkins无法从公共存储库中从git中提取代码

Jenkins无法从公共存储库中从git中提取代码,git,jenkins,github,jenkins-plugins,Git,Jenkins,Github,Jenkins Plugins,嗨,我是jenkins的新手,通过谷歌搜索我是如何在git中添加webhook的,它的工作方式与我提交它时的工作方式非常相似。它触发了一个作业,但在控制台中,我看到git没有贝尔来获取代码并抛出错误消息,如果有人能帮我解决这个问题,我会很有帮助的 错误消息 Cloning the remote Git repository Cloning repository https://github.com/zulfikarayub/Fravega_FrontEnd.git > git.exe i

嗨,我是jenkins的新手,通过谷歌搜索我是如何在git中添加webhook的,它的工作方式与我提交它时的工作方式非常相似。它触发了一个作业,但在控制台中,我看到git没有贝尔来获取代码并抛出错误消息,如果有人能帮我解决这个问题,我会很有帮助的

错误消息

Cloning the remote Git repository
Cloning repository https://github.com/zulfikarayub/Fravega_FrontEnd.git
 > git.exe init C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\Fravega_frontEnd # timeout=10
Fetching upstream changes from https://github.com/zulfikarayub/Fravega_FrontEnd.git
 > git.exe --version # timeout=10
 > git --version # 'git version 2.27.0.windows.1'
 > git.exe fetch --tags --force --progress -- https://github.com/zulfikarayub/Fravega_FrontEnd.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git.exe config remote.origin.url https://github.com/zulfikarayub/Fravega_FrontEnd.git # timeout=10
 > git.exe config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
Checking out Revision 8ff5713a5e01dcbb366787c20d24df417a404398 (refs/remotes/origin/master)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f 8ff5713a5e01dcbb366787c20d24df417a404398 # timeout=10
ERROR: Unable to retrieve commit message
org.eclipse.jgit.errors.MissingObjectException: Missing unknown 8ff5713a5e01dcbb366787c20d24df417a404398
    at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:135)
    at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:203)
    at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:917)
    at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:827)
    at hudson.plugins.git.util.RevCommitRepositoryCallback.invoke(RevCommitRepositoryCallback.java:25)
    at hudson.plugins.git.util.RevCommitRepositoryCallback.invoke(RevCommitRepositoryCallback.java:13)
    at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:84)
    at hudson.plugins.git.GitSCM.printCommitMessageToLog(GitSCM.java:1386)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1355)
    at hudson.scm.SCM.checkout(SCM.java:505)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
    at hudson.model.Run.execute(Run.java:1894)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:428)
 > git.exe rev-list --no-walk 315e98c5f65da818e7a443082dba221ec90db8fd # timeout=10
Finished: SUCCESS

git插件可能有问题,请降级您的插件并试一试

与git插件v3.5.1中的问题相同

我还尝试了在git插件的v4.3.0版本中使用您的存储库,它运行良好


git插件可能有问题,请降级您的插件并试一试

与git插件v3.5.1中的问题相同

我还尝试了在git插件的v4.3.0版本中使用您的存储库,它运行良好


您是否将Git插件与Jenkins插件一起添加?是的,我已经安装了,请查找附加的sameDid屏幕截图。您将Git插件与Jenkins插件一起添加了吗?是的,我已经安装了,请查找附加的sameDid屏幕截图。该问题似乎不在项目设置中,但由于您提到要将其降级,4.3.0但仍然相同,问题是在触发生成时显示此错误:无法检索提交消息是否有人发现此问题?我遇到了同样的问题,无法降级到git插件4.6.0之外。问题似乎不在项目设置中,但由于您提到要降级它,4.3.0但仍然是一样的,问题是在触发构建时。它显示此错误:无法检索提交消息有人发现此问题吗?我遇到了同样的问题,不能降级到git插件4.6.0之外