2017-02-23 4 views
0

Pit 용 GitHub 저장소에서 Jenkins 빌드를 시도 할 때 아래 오류가 나타납니다. Jenkins는 로컬 설치이고 GitHub에 로그인 할 때 사용하는 사용자 이름과 암호가있는 git에 https 주소를 사용하고 있습니다. 당신의 GitHub의 로그인 비밀번호에 특수 문자가 포함되어 있으면 내가 젠킨스와 GitHub의 모두에 새로운 오전 같은 사람이 여기에 좀 포인터를 제공 할 수 것은Jenkins Git Plugin

Building in workspace C:\Program Files (x86)\Jenkins\workspace\AdventureWorks2014 - 1. Build 
 
Cloning the remote Git repository 
 
Cloning repository https://github.com/h020905a/AdventureWorks2014.git 
 
> git.exe init C:\Program Files (x86)\Jenkins\workspace\AdventureWorks2014 - 1. Build # timeout=10 
 
Fetching upstream changes from https://github.com/h020905a/AdventureWorks2014.git 
 
> git.exe --version # timeout=10 
 
using GIT_ASKPASS to set credentials 
 
> git.exe fetch --tags --progress https://github.com/h020905a/AdventureWorks2014.git +refs/heads/*:refs/remotes/origin/* 
 
ERROR: Error cloning remote repo 'origin' 
 
hudson.plugins.git.GitException: Error performing git command 
 
\t at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1793) 
 
\t at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1513) 
 
\t at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64) 
 
\t at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315) 
 
\t at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:512) 
 
\t at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1057) 
 
\t at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097) 
 
\t at hudson.scm.SCM.checkout(SCM.java:495) 
 
\t at hudson.model.AbstractProject.checkout(AbstractProject.java:1278) 
 
\t at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) 
 
\t at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
 
\t at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 
 
\t at hudson.model.Run.execute(Run.java:1728) 
 
\t at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
 
\t at hudson.model.ResourceController.execute(ResourceController.java:98) 
 
\t at hudson.model.Executor.run(Executor.java:404) 
 
Caused by: org.jvnet.winp.WinpException: Failed to read RT_USER_PROCESS_PARAMETERS error=299 at envvar-cmdline.cpp:151 
 
\t at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method) 
 
\t at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126) 
 
\t at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102) 
 
\t at hudson.util.ProcessTree$Windows$1.getArguments(ProcessTree.java:444) 
 
\t at hudson.plugins.msbuild.MsBuildKillingVeto.vetoProcessKilling(MsBuildKillingVeto.java:56) 
 
\t at hudson.util.ProcessTree$OSProcess.getVeto(ProcessTree.java:242) 
 
\t at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425) 
 
\t at hudson.util.ProcessTree.killAll(ProcessTree.java:145) 
 
\t at hudson.Proc$LocalProc.destroy(Proc.java:380) 
 
\t at hudson.Proc$LocalProc.join(Proc.java:353) 
 
\t at hudson.Proc.joinWithTimeout(Proc.java:166) 
 
\t at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1780) 
 
\t ... 15 more 
 
ERROR: null 
 
Finished: FAILURE

답변

0

은, 당신이 직면하고있는 문제는 문제와 유사 수 있습니다 https://issues.jenkins-ci.org/browse/JENKINS-38655

JGit을 사용하여 작업을 시도해 볼 수 있습니다. 위에서 언급 한 티켓에서 Mark Waite의 대답을 인용하십시오 : TFS를 사용하지는 않지만 특정 사용자의 암호 (예 : 캐럿이나 앰퍼샌드 또는 작은 따옴표 또는 큰 따옴표)에 특수 문자가있는 경우이 JENKINS-38194를 복제 한 것일 수도 있습니다.이 경우 해결해야 할 일은 커맨드 라인 git 구현에서 JGit 구현을 사용하는 것으로 전환하는 것일 수 있습니다 .JGit 구현은 "Manage Jenkins", " Global Tool Configuration ","Git "을 선택하면 각 작업에 선택 목록이 표시되어 해당 작업이 명령 줄 또는 JGit 중 무엇을 사용해야하는지 선택할 수 있습니다."

0

github의 지점을 마스터로 전환하고 repo 공개로 변경하여 문제를 해결했습니다.