Hi, I'm setting up CC.NET for a project which uses git. Users are authenticated via ssh keys.
I'd like to run CC.NET as a service (i. e. no logged in user and require no manual interaction to load the ssh key). I have tried with the instructions at http://www.cruisecontrolnet.org/projects/ccnet/wiki/Git but the ssh key is not loaded. Then I tried to load the ssh key in a prebuild step using an exec block: <prebuild> <!-- Load ssh key --> <exec> <executable>C:\myproject\PuTTY\pageant.exe</executable> <buildArgs>c:\users\theuser\.ssh\id_dsa.ppk</buildArgs> <buildTimeoutSeconds>10</buildTimeoutSeconds> </exec> </prebuild> ... <sourcecontrol type="git"> <repository>[email protected]:myproject.git</repository> <branch>master</branch> <autoGetSource>true</autoGetSource> <fetchSubmodules>true</fetchSubmodules> <executable>c:\program files (x86)\git\cmd\git.cmd</executable> <tagOnSuccess>false</tagOnSuccess> <commitBuildModifications>false</commitBuildModifications> <commitUntrackedFiles>false</commitUntrackedFiles> <tagCommitMessage>CCNet Build {0}</tagCommitMessage> <tagNameFormat>CCNet-Build-{0}</tagNameFormat> <committerName>MyProject Autobuilder</committerName> <committerEMail>[email protected]</committerEMail> <workingDirectory>c:\myproject\ccnet\theworkingdir</workingDirectory> <timeout units="minutes">60</timeout> </sourcecontrol> But apparently the prebuild block is not being executed at all, not even when running CC.NET in a Windows session. Software details: * Windows Server 2008 R2 SP1 x64 * msysgit 1.7.7.1 * CC.NET 1.7.675.8065 * PuTTY x86 0.6.1 What am I doing wrong? Why is the prebuild block not being executed? Thank you PS: Yes, I could replace the git.cmd executable with a "proxy" one that executes pageant, then git.cmd, but that's a hack. I'd rather fix what's wrong. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer)
