Installing, Configuring and Executing jobs With Jenkins – Part 1 (Installing and Configuring)

Posted on Updated on

Jenkins is an application that monitors executions of repeated jobs, such as building a software project or executing automation scripts. Among those things, current Jenkins focuses on the following two jobs:

  • Building/testing software projects continuously
  • Monitoring executions of externally-run jobs

This article will guide you how to install and configure Jenkins in an project environment.

Installation of Jenkins

Pre-requirements : 

Following tools are required in order to setup the environment.

  1. JDK 1.7 or higher
  2. Apache ANT
  3. Jenkins windows installation package

Installation :

1. Download the Jenkins setup files from the official Jenkins website.

downloadjenkins

2.  Run the installer to install Jenkins in the computer.

installationpackagejenkins

3.  Click next on the welcome screen.

jenkinswizard1

4.  Select the installation location and install the software.

jenkinswizard2

5. When the installation is finished a web browser will open the Jenkins portal in the local machine. Make a note on the URL of the portal. This is the URL which you will use to access Jenkins in the future.

jenkinsportal

6.  Please note that this installation will install Jenkins as a Windows service. So you can start/stop the service from Services in windows.

jenkinsServices

7.  By default Jenkins use port 8080 for operating. If you want to change the default port for the Jenkins it is quite simple.

  • Navigate to the Jenkins installation folder.
  • Locate the jenkins.xml file with a text editor.
  • Find and edit the httpPort number to your desired port.
    • httpPort=xxxx  To  httpPort=yyyy

Configuring Jenkins For Java and Ant

1.  Open Jenkins portal with the URL (http://localhost:8080)

configJenkins

2.  Click on the Manage Jenkins Link

configJenkins2

3.  Click on Configure System link

configJenkins3

4.  Enter JDK name and Java_HOME (Java installed root directory) as below.

  • You can select the “Install Automatically” check box to download and install selected JDK automatically in your system.

configJenkins4

5.  Enter values for ANT and ANT_HOME (ANT root folder)

  • You can select the “Install Automatically” check box to download and install selected ANT automatically in your system.

configJenkins5

Now your Jenkins installation is ready to accept java ANT jobs.

Proceed to the next part of the guide to check how to create and run Jenkins jobs.

Part 2 (Installing, Configuring and Executing jobs With Jenkins)

One thought on “Installing, Configuring and Executing jobs With Jenkins – Part 1 (Installing and Configuring)

    […] This is the Part 2 of the Jenkins guide. You can visit the first part from here. […]

    Like

Leave a comment