Thank you for your reply.
Actually, I have found the problem. On Windows 32 bits, I must use C:\Program Files\Git\cmd\git.exe and on 64 bits ...\bin\git.exe... It's not a Jenkins bug.
Now I have some other errors... maybe not because of Jenkins, but as usual the build works without Jenkins.
On my Windows 2003 64 bits :
C:\Program Files (x86)\Git\bin\sh.exe: *** fork: can't reserve memory for stack 0x4A0000 - 0x6A0000, Win32 error 0
0 [main] sh 1800 sync_with_child: child 2004(0x71C) died before initialization with status code 0x1
4717 [main] sh 1800 sync_with_child: *** child state waiting for longjmp
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\hudson466784039591434222.sh: fork: Resource temporarily unavailable
Build step 'Exécuter un script shell' marked build as failure
Finished: FAILURE
In fact, when I do a "sh" in a "sh" in cmd.exe, I have the same error, but if I use C:\windows\syswow64\cmd.exe, it works. So, How can I tell Jenkins to use the latter cmd.exe ?
The other error is on a Windows 2008 R2 64 bits slave :
CMake Error at c:/Program Files (x86)/CMake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "c:/TDM-GCC/bin/gcc.exe" is not able to compile a simple
test program.
It fails with the following output:
Change Dir: C:/Nadra/workspace/test_win2/cmake_w/release/CMakeFiles/CMakeTmp
Run Build Command:c:/MinGW/bin/make.exe "cmTryCompileExec2205426971/fast"
c:/MinGW/bin/make.exe -f
CMakeFiles/cmTryCompileExec2205426971.dir/build.make
CMakeFiles/cmTryCompileExec2205426971.dir/build
c:/MinGW/bin/make.exe: Interrupt/Exception caught (code = 0xc0000005, addr
= 0x759b43f9)
make.exe: *** [cmTryCompileExec2205426971/fast] Error 255
But the PATH is the same on Jenkins and on my host (I print $PATH in the job).
And when I run cmake from cmd.exe, it works...
I use the last version of Jenkins (1.622), and the slaves use JNLP to connect the master.
Thank you,