簡體   English   中英

Jenkins無法從私有bitbucket雲存儲庫中提取代碼

[英]Jenkins is not able to pull code from private bitbucket cloud repo

我正在嘗試將bitbucket專用存儲庫連接到jenkins。 我已經在Bitbucket中設置了一個webhook。 以及向詹金斯(Jenkins)添加的憑據。 仍然我的構建卡住了,無法從Bitbucket提取源代碼。 我知道這只是在私人回購中,因為我已經嘗試與公共bitbucket回購建立聯系,並且效果很好。

這是我在詹金斯遇到的錯誤

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)我能夠運行相同的命令(C:\\ Program Files \\ Git \\ bin \\ git.exe fetch --tags --progress https://xxx@bitbucket.org/xxx/test.git + refs / heads / :refs / remotes / release / )在同一位置(Jenkins工作區)-它已成功獲取遠程倉庫。

2)Jenkins能夠獲取和下載公共回購內容。

3)這是所有更新插件的首次安裝,

Git插件-3.3.1 Git客戶端插件-2.4.6憑據插件-2.1.13
詹金斯-2.59

我不認為那里還有什么,因為詹金斯無法運行命令?

有人可以幫忙嗎?

可能失敗的清單:

編輯:

  • 解決方案:您是否嘗試過使用其他回購協議?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM