簡體   English   中英

Jenkins:使用https克隆遠程git存儲庫失敗

[英]Jenkins : cloning remote git repository using https failed

我在jenkins中配置我們的項目,以便在從遠程https git存儲庫克隆后構建。 但是在克隆項目的過程中出現了以下錯誤。感謝您為解決此問題提供的任何幫助。

> git config --local credential.username myusername # timeout=10
> git config --local credential.helper store --file=/Users/Shared/Jenkins/tmp/git4065038663529705946.credentials # timeout=10
> git -c core.askpass=true fetch --tags --progress https://myusername@bitbucket-eng-sjc1.mycompany.com/bitbucket/scm/xxx/myapp.git +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes
> git config --local --remove-section credential # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress https://myusername@bitbucket-eng-sjc1.mycompany.com/bitbucket/scm/xxx/myapp.git +refs/heads/*:refs/remotes/origin/*" returned status code 143:
stdout: 
stderr: 
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1740)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1476)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:506)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1046)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086)
at 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.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1720)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
ERROR: null
Finished: FAILURE

這是您的問題: ERROR: Timeout after 10 minutes 測試為什么id超時。

測試連接,ping和身份驗證。 服務器是否允許來自該域/主機名/ ip范圍的連接?

檢查系統上是否有任何代理設置。 檢查是否設置了環境變量“ http_proxy ”或“ https_proxy ”。 它可能設置了http_proxy環境變量,這就是為什么您能夠從命令行克隆/訪問存儲庫的原因。

如果設置了代理,那么您還需要在詹金斯中設置代理。 將http代理設置為

"Jenkins -> Manage Jenkins -> Manage Plugins -> Advanced Tab".

暫無
暫無

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

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