How to Install Git, Ruby and Jenkins on Windows

This article provides supplemental instructions to the piece How to Expedite Continuous Testing. Specifically, it explains how to install Git, Ruby and Jenkins on Windows (as opposed to a Mac or Linux environment).

Download and install Git. For the most part, you'll select command-line setting, with the exception of Git command line stuff. In that case, select "use git from the Windows Command Prompt," as shown below.

Continuous Testing Figure 12

Download and Install Ruby. (This installation was tested with Ruby 2.0.0-p481.)

Again, for the most part you'll use the default settings. When you get to following screen, use the settings as shown, adding Ruby to the PATH and associating .rb and .rbw files with the installation.

Continuous Testing Figure 13

Add Ruby to the system path. Under Windows 7, this is Control Panel -> System and Security -> System -> Advanced System Settings. Click the Environment Variables button at the bottom right of the window, as shown below.

Continuous Testing Figure 14

Because Ruby was added to the user path earlier, you should be able to copy the entry where Ruby was installed in user path and paste it at the end of the system variable for path.

Continuous Testing Figure 15

Test and make sure the path is correct. To do this, open a command prompt and make sure you get results as shown for the following commands:

git --version
ruby -v
Continuous Testing Figure 16

Download and install the Jenkins Window Installer. Open the Zip file. Double-click the Setup application; use all default settings. Jenkins will install and open in localhost:8080.

Install the GitHub Plugin and Green Balls Plugins as described above. (Both will automatically install the plugins they depend on as well.)

Keep in mind that your system isn't configured to run Ruby, Jenkins and Git under Windows.

Now that you've installed everything, return to the section of the tutorial entitled Install Jenkins Plugins to continue.

Join the discussion
Be the first to comment on this article. Our Commenting Policies