Jenkins hanging at “Fetching upstream changes from origin”

后端 未结 8 2068
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-25 12:17

I\'m trying to set up Jenkins on a Windows Server 2012 machine, and I\'m having a lot of difficulty.

Things I\'ve done:

  • Created a password-less i
8条回答
  •  清歌不尽
    2020-12-25 13:09

    This is how I solved it:

    I ran the sysinternals tool psexec to spawn a CMD which is running under the LocalSystem account (same account like jenkins service is running)

    PSEXEC -i -s -d CMD
    

    In this cmd prompt I executed the same git command from the workspace directory as the hanging GIT.exe processes do. E.g.

    d:\Programs\Jenkins\jobs\jobname\workspace>D:\Programs\Git\bin\git.exe fetch -t ssh+git://gitpub@my.server.com:9360/data/gitpub/myRepository.git +refs/heads/:refs/remotes/origin/

    Et voila: I was prompted to enter "yes" to add the SSH key to the known list of known hosts.

提交回复
热议问题