本文介绍了詹金斯Git插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从gitHub存储库中为poc尝试Jenkins构建项目时,出现以下错误。詹金斯是本地安装,我使用https地址作为git,用户名和密码用于登录到GitHub。任何人都可以为我提供一些指针,因为我对Jenkins和GitHub都是新手。
falsedata-console =truedata-babel =false> 在工作区中建立C:\程序文件(x86)\Jenkins\workspace\AdventureWorks2014 - 1. BuildCloning远程Git存储库克隆存储库https://github.com/h020905a/AdventureWorks2014.git> git.exe init C:\程序文件(x86)\Jenkins\workspace\AdventureWorks2014 - 1. Build#timeout = 10从https://github.com/h020905a/AdventureWorks2014.git获取上游更改> git.exe --version#timeout = 10使用GIT_ASKPASS设置凭证> git.exe fetch --tags --progress https://github.com/h020905a/AdventureWorks2014.git + refs / heads / *:refs / remotes / origin / *错误:错误克隆远程回购'origin'hudson.plugins。 git.GitException:错误在org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1793)在org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1513)在org.jenkinsci执行GIT中命令.plugins.gitclient.CliGitAPIImpl.access $ 300(CliGitAPIImpl.java:64)在org.jenkinsci.plugins.gitclient.CliGitAPIImpl $ 1.execute(CliGitAPIImpl.java:315)在org.jenkinsci.plugins.gitclient.CliGitAPIImpl $ 2.execute( CliGitAPIImpl.java:512)在hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1057)在hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)在hudson.scm.SCM.checkout(SCM .java:495)at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)at hudson.model.AbstractBuild $ AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)at jenkins.s cm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)在hudson.model.AbstractBuild $ AbstractBuildExecution.run(AbstractBuild.java:529)在hudson.model.Run.execute(Run.java:1728)在hudson.model.FreeStyleBuild .RUN(FreeStyleBuild.java:43)在hudson.model.ResourceController.execute(ResourceController.java:98)在hudson.model.Executor.run(Executor.java:404)引起的:org.jvnet.winp.WinpException:失败在ENVVAR-cmdline.cpp读取RT_USER_PROCESS_PARAMETERS错误= 299:在org.jvnet在org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)151在org.jvnet.winp.Native.getCmdLineAndEnvVars(本机方法) .winp.WinProcess.getCommandLine(WinProcess.java:102)在hudson.util.ProcessTree $ WINDOWS $ 1.getArguments(ProcessTree.java:444)在hudson.plugins.msbuild.MsBuildKillingVeto.vetoProcessKilling(MsBuildKillingVeto.java:56)在哈德逊.util.ProcessTree $ OSProcess.getVeto(ProcessTree.java:242)at hudson.util.ProcessTree $ Windows $ 1.killRecursively(ProcessTree.java:425)at hudson.util .ProcessTree.killAll(ProcessTree.java:145)在hudson.Proc $ LocalProc.destroy(Proc.java:380)在hudson.Proc $ LocalProc.join(Proc.java:353)在hudson.Proc.joinWithTimeout(PROC。的java:166)在org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1780)... 15 moreERROR:nullFinished:FAILURE