V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
hobbyliu
V2EX  ›  问与答

jenkins git 插件问题 求大神指点

  •  
  •   hobbyliu · 2015-04-24 15:04:59 +08:00 · 4765 次点击
    这是一个创建于 3492 天前的主题,其中的信息可能已经有所发展或是发生改变。

    构建之后报错如下:

    Started by user anonymous
    Building in workspace /root/.jenkins/jobs/testjenkins/workspace
     > git rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
     > git config remote.origin.url [email protected]:hobby/test.git # timeout=10
    Fetching upstream changes from [email protected]:hobby/test.git
     > git --version # timeout=10
     > git -c core.askpass=true fetch --tags --progress [email protected]:hobby/test.git +refs/heads/*:refs/remotes/origin/*
    ERROR: Error fetching remote repo 'origin'
    hudson.plugins.git.GitException: Failed to fetch from [email protected]:hobby/test.git
        at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735)
        at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983)
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016)
        at hudson.scm.SCM.checkout(SCM.java:484)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
        at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)
        at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
        at hudson.model.Run.execute(Run.java:1741)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:374)
    Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress [email protected]:hobby/test.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
    stdout: 
    stderr: ssh: connect to host git.khk.cc port 22: Connection timed out
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324)
        at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733)
        ... 11 more
    ERROR: Error fetching remote repo 'origin'
    Finished: FAILURE
    
    2 条回复
    hobbyliu
        1
    hobbyliu  
    OP
       2015-04-24 15:09:56 +08:00
    木有大神回复吗
    kaneg
        2
    kaneg  
       2015-04-24 21:40:05 +08:00 via iPhone
    connection timeout。你确定git服务器能连上?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1506 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 17:22 · PVG 01:22 · LAX 09:22 · JFK 12:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.