Git Jenkins无法从私有bitbucket云回购中提取代码
我正在尝试将bitbucket私人回购与詹金斯联系起来。我在Bitbucket中设置了一个webhook。以及为詹金斯添加了证书。但我的构建仍然被卡住,无法从Bitbucket中提取源代码。 我知道这只是私人回购,因为我曾尝试与公共比特桶回购建立联系,效果很好 这是我在詹金斯身上犯的错误Git Jenkins无法从私有bitbucket云回购中提取代码,git,jenkins,bitbucket,Git,Jenkins,Bitbucket,我正在尝试将bitbucket私人回购与詹金斯联系起来。我在Bitbucket中设置了一个webhook。以及为詹金斯添加了证书。但我的构建仍然被卡住,无法从Bitbucket中提取源代码。 我知道这只是私人回购,因为我曾尝试与公共比特桶回购建立联系,效果很好 这是我在詹金斯身上犯的错误 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://xxxx@bitbucket.org/xxxxx/test2.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
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:405)
Caused by: hudson.plugins.git.GitException: Error performing git command
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1886)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
... 11 more
Caused by: org.jvnet.winp.WinpException: Failed to read RT_USER_PROCESS_PARAMETERS error=299 at envvar-cmdline.cpp:151
at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)
at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102)
at hudson.util.ProcessTree$WindowsOSProcess.getArguments(ProcessTree.java:451)
at hudson.plugins.msbuild.MsBuildKillingVeto.vetoProcessKilling(MsBuildKillingVeto.java:56)
at hudson.util.ProcessTree$OSProcess.getVeto(ProcessTree.java:243)
at hudson.util.ProcessTree$WindowsOSProcess.killRecursively(ProcessTree.java:429)
at hudson.util.ProcessTree.killAll(ProcessTree.java:146)
at hudson.Proc$LocalProc.destroy(Proc.java:380)
at hudson.Proc$LocalProc.join(Proc.java:353)
at hudson.Proc.joinWithTimeout(Proc.java:166)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1873)
... 15 more
ERROR: null
Finished: FAILURE
进一步研究:
1) 我能够在同一位置(Jenkins workspace)运行相同的命令(C:\Program Files\Git\bin\Git.exe fetch--tags--progress+refs/heads/:refs/remotes/release/),它成功地获取远程repo
2) Jenkins能够获取和下载公共回购内容
3) 这是第一次安装所有更新的插件
Git插件-3.3.1
Git客户端插件-2.4.6
凭证插件-2.1.13詹金斯-2.59 我想不出还有什么其他原因,因为jenkins不能运行命令
有人能帮忙吗 可能失败的事情清单:
- 密码中的特殊字符(和)
- 你试过改变协议吗?使用git代替https:// 或者ssh://
- 你最近更新过这个插件吗李>
- 您是否尝试过对插件进行降级
- 你更新了这两个吗
- 解决方案:您尝试过不同的回购协议吗