Hudson, windows2008 and git plugin
I got hudson up and running. Installed git plugin. Created new job, typed in git repository URL, saved and hit 'build now'.
It just freezes. When i cancel build, this is what I get:
Started by user anonymous
Checkout:workspace / C:\Users\taboo_user.TABOO.hudson\jobs\Interreg\workspace - hudson.remoting.LocalChannel@94aa42 Using strategy: Default Checkout:workspace / C:\Users\taboo_user.TABOO.hudson\jobs\Interreg\workspace - hudson.remoting.LocalChannel@94aa42 GitAPI created Cloning the remote Git repository Cloning repository origin $ "C:\Program Files\Git\bin\git.exe" clone -o origin git@subversion.alise.lv:interreg开发者_高级运维.git C:\Users\taboo_user.TABOO.hudson\jobs\Interreg\workspace ERROR: Error cloning remote repo 'origin' : Could not clone git@subversion.alise.lv:interreg.git ERROR: Cause: Error performing C:\Program Files\Git\bin\git.exe clone -o origin git@subversion.alise.lv:interreg.git C:\Users\taboo_user.TABOO.hudson\jobs\Interreg\workspace null Trying next repository ERROR: Could not clone repository FATAL: Could not clone
I'm googling for about 2 hours now with no results.
Windows event viewer is empty.
Tried setting specific user for hudson windows service, that has correct ssh key, known hosts and is able to git clone from command line repo w/o problems.
Tried to parametrize hudson build with %HOME%
variable.
Tried to add c:/program files/git/bin
folder to PATH env variable.
Tried to explicitly tell hudson that it should use c:/program files/git/bin/git.exe
.
There are bunch of info around this error message but nothing helps so far. Got no ideas anymore.
Any help?
echo $USERNAME
echo $HOMEPATH echo $HOME
returns
[workspace] $ sh -xe C:\Users...
+ echo taboo_user taboo_user + echo '\' \ + echo
User name is correct for sure.
If you can clone with a specific user outside of Hudson, but cannot within an Hudson Job, that should mean the user and environment used by Hudson is not correct or complete.
In particular, that all "Started by user anonymous" message worries me.
In those case, I always try to simplify the problem, making a simple script-based Hudson job with the only task to display its username, path and environment variable to see exactly who will be executing my commands (like git).
精彩评论