Problems with CCNET and Git (Git hangs)

451 views
Skip to first unread message

Callum Hibbert

unread,
Feb 4, 2011, 7:13:46 AM2/4/11
to ccnet...@googlegroups.com

Hi,

I'm trying to get CCNET working with GitHub. Following the instructions here:

http://ccnetlive.thoughtworks.com/ccnet/doc/CCNET/Git%20Source%20Control%20Block.html

CCNET initialises a Git repository in the woorking directory but when it connects to Git it hangs (and then build times out). I am pretty sure that Git is prompting for the SSH passphrase (and obviously, there is no interactive console to enter one). I can't work out how to make CCNET provide a key (or prevent the Git infrastructure from asking for one).

I've tried numerous solutions but none on of them work. The solutions I've tried are as follows:

Setting/amending PATH and HOME environment variables...
...as per the instructions for the original plug-in - https://github.com/dogeth/ccnet.git.plugin
...and as per this guys instructions - http://www.xerxesb.com/2009/getting-cruisecontrolnet-to-talk-to-git/

Also, copying the .ssh directory - http://blog.analysisuk.com/?tag=/CCNET-Git-CruiseControl-CI
 
My Source Control Block:
 
<sourcecontrol type="git">     
      <executable>C:\Program Files (x86)\Git\bin\git.exe</executable>
      <repository>g...@github.com:MyOrg/MyRepository.git</repository>
</sourcecontrol>
 
I am running CCNET as me and I know I can connect to GitHub, though I do need to enter the passphrase.

I'm using CCNET v1.5 RC1.

Any help appreciated.

Callum

Daniel Nauck

unread,
Feb 7, 2011, 4:39:40 AM2/7/11
to ccnet...@googlegroups.com
Hello Callum,

i should consider the following hints:

- let CCService run under its own user account
- use a ssh key without a passphrase (ccnet cannot type in a password)
- before the first useage, switch to the CCNetService user, open the git bash and conntect to github & co .. accept the pub-key from github

It hangs in your evnvironment probably because its waiting for user input, like accepting the pub-key/fingerpint and/or waiting the the passphrase to be entered.

I hope this helps a bit.

Daniel

2011/2/4 Callum Hibbert <callum....@gmail.com>
Reply all
Reply to author
Forward
0 new messages