Installing, Configuring and Executing jobs With Jenkins – Part 1 (Installing and Configuring)
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.
- JDK 1.7 or higher
- Apache ANT
- Jenkins windows installation package
Installation :
1. Download the Jenkins setup files from the official Jenkins website.
2. Run the installer to install Jenkins in the computer.
3. Click next on the welcome screen.
4. Select the installation location and install the software.
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.
6. Please note that this installation will install Jenkins as a Windows service. So you can start/stop the service from Services in windows.
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
TohttpPort=yyyy
Configuring Jenkins For Java and Ant
1. Open Jenkins portal with the URL (http://localhost:8080)
2. Click on the Manage Jenkins Link
3. Click on Configure System link
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.
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.
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)
June 12, 2015 at 8:23 am
[…] This is the Part 2 of the Jenkins guide. You can visit the first part from here. […]
LikeLike