Windows slave

时间:2017-06-28 21:04:26

标签: git jenkins bitbucket

我正在尝试设置一个Jenkins windows slave来运行一些只能在Windows上运行的测试套件。当我git git克隆时,它会挂起一段时间,并最终出现以下错误。我做了很多研究,但似乎无法找到问题。我可以登录到该框,因为用户是通过Jenkins提供的,并直接进行克隆无问题。

  

远程用户Bert Alfred Building启动   工作区中的windows-jenkins-runner   d:\詹金斯\工作空间\硒浇道

     
    

" c:\ Program Files \ Git \ bin \ git.exe" rev-parse --is-inside-work-tree #timetime = 10从远程Git存储库中获取更改     " c:\ Program Files \ Git \ bin \ git.exe" config remote.origin.url https://bertalfred@bitbucket.org/marypoppinsco/myproj-tests.git#     timeout = 10从中获取上游更改     https://bertalfred@bitbucket.org/marypoppinsco/myproj-tests.git     " c:\ Program Files \ Git \ bin \ git.exe" --version#timeout = 10使用GIT_ASKPASS设置凭据     " c:\ Program Files \ Git \ bin \ git.exe" fetch --tags --progress https://bertalfred@bitbucket.org/marypoppinsco/myproj-tests.git     + refs / heads / :refs / remotes / origin / 错误:10分钟后超时错误:获取远程回购'来源错误     hudson.plugins.git.GitException:无法获取     https://bertalfred@bitbucket.org/marypoppinsco/myproj-tests.git at     hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803)at at     hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063)at at     hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094)at 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)       在     jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)       在     hudson.model.AbstractBuild $ AbstractBuildExecution.run(AbstractBuild.java:529)       在hudson.model.Run.execute(Run.java:1720)at     hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)at at     hudson.model.ResourceController.execute(ResourceController.java:98)       在hudson.model.Executor.run(Executor.java:404)引起:     hudson.plugins.git.GitException:Command"" c:\ Program     文件\的Git \ BIN \ git.exe" fetch --tags --progress     https://bertalfred@bitbucket.org/marypoppinsco/myproj-tests.git     +参考文献/头/ :参/​​遥控器/来源/ "返回状态码1:stdout:处理泄露的文件描述符。看到     http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build     了解更多信息处理泄露的文件描述符。看到     http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build     了解更多信息

  
     stderr:at   org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1784)     在   org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1513)     在   org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access $ 300(CliGitAPIImpl.java:64)     在   org.jenkinsci.plugins.gitclient.CliGitAPIImpl $ 1.execute(CliGitAPIImpl.java:315)     在   org.jenkinsci.plugins.gitclient.RemoteGitImpl $ CommandInvocationHandler $ 1.call(RemoteGitImpl.java:152)     在   org.jenkinsci.plugins.gitclient.RemoteGitImpl $ CommandInvocationHandler $ 1.call(RemoteGitImpl.java:145)     在hudson.remoting.UserRequest.perform(UserRequest.java:153)at   hudson.remoting.UserRequest.perform(UserRequest.java:50)at   hudson.remoting.Request $ 2.run(Request.java:332)at   hudson.remoting.InterceptingExecutorService $ 1.call(InterceptingExecutorService.java:68)     在java.util.concurrent.FutureTask.run(未知来源)at   java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)at   java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)at   hudson.remoting.Engine $ 1 $ 1.run(Engine.java:88)at   java.lang.Thread.run(未知来源)......远程调用   windows-jenkins-runner(Native Method)at   hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1433)     在hudson.remoting.UserResponse.retrieve(UserRequest.java:253)at   hudson.remoting.Channel.call(Channel.java:797)at   org.jenkinsci.plugins.gitclient.RemoteGitImpl $ CommandInvocationHandler.execute(RemoteGitImpl.java:145)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:497)at   org.jenkinsci.plugins.gitclient.RemoteGitImpl $ CommandInvocationHandler.invoke(RemoteGitImpl.java:131)     在com.sun.proxy。$ Proxy82.execute(未知来源)at   hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:801)... 11更多   错误:null完成:失败

1 个答案:

答案 0 :(得分:1)

GIT_ASKPASS设置为什么?它几乎看起来好像在等你输入密码

您基本上需要确保为Jenkins设置的凭据管理器自动提供密码。

请参阅此答案:Stuck at fetch due to authentication issue

相关问题