I have both Linux and Windows. I would like to install Git automatically on a slave for the first time the wizard needs to start Git. how do you tell Jenkins to install it correctly on Win or Linux, if at all possible?
Basically, you need to check if any git returns something (that git.exe on Windows, if you installed GoW - Gnu on Windows - commands ).
If this fails, see " Configuring the git Environment
On Linux:
sudo yum install git-core # RedHat sudo apt-get install git-core # Ubuntu
On Windows:
Download and release the portable version of msysgit .You can script it using the curl command included in Gow, but you may need Peazip installed to unpack the 7z archive (just like a portable installation a simple zip archive).