Step by Step method for Installing Jenkins & CI/CD

AI Canada Club
5 min readAug 21, 2022

Jenkins is a simple J2EE Application Server.

Installing Jenkins Server

On any platform, Jenkins is one of the most widely used technologies for continuous integration and delivery. Jenkins, a Java application, has many plugins that can automate almost all infrastructure tasks. Due to a wide range of functions that Jenkins offers in the form of plugins, its use has rapidly expanded.

Methodology

1) Configure Jenkins

2) Install Jenkins on Windows

3) Setup Jenkins

4) NETSTAT tool to capture Port activity.

5) Analyze Jenkins Installation Logs.

My system is windows based, so I will try to configure Jenks for windows.

Configure Jenkins for Windows

First we have to install java. Jenkins support java version above JDK8.

The java development kit can available from oracle site.

https://www.oracle.com/ca-en/java/technologies/javase/javase8-archive-downloads.html

My system already has JDK and we can verify it by using PowerShell.

The command is java — version and confirm whether the correct version and environment installed properly.

Step1:

Once installed java runtime ,

Download the latest Jenkins package for Windows.

https://www.jenkins.io/download/

Step2: Once it downloaded, it will open a wizard and click next to it

Step3:

Click on change of button, if we need to installation folder and once selected click on next.

I selected default option for installing Jenkins package.

Step4:

Enter service Logon credentials and click on test credential to verify.

My server test credential getting to fail.

I searched the error and found one solution

https://stackoverflow.com/questions/63410442/jenkins-installation-windows-10-service-logon-credentials

I have to edit the Local security policy of windows.

For windows 11, the local security policy is missing and need to enable local security policy.

The steps to enable local security policy in windows 11 follows.

https://www.itechtics.com/enable-secpol-msc-windows-11/

I followed the steps and listed the local security policy.

Enable logon service

Add administrator name for enable logon service for particular user.

Step5: Test credential got successfully verified and click on next to continue installation

Step6: Select and test the port and click next button.

Step7: Select the Java home directory

Step8: select the services and click on next button.

Install Jenkins for Windows

Step9: Click install button.

Installation is in progress.

Step 10: When done click on finish button to complete the installation of Jenkins.

Setup Jenkins for Windows

Step11: Enter http://localhost:8080

To setup Jenkins, copy the password from the file intialAdminPassword. The file can find in Jenkins installation folder.

Step12: Install suggested plugins.

Step13: Wait until plugins are completely installed.

Step 15: Create First admin user.

Step 16: click on save and finish to complete Jenkins installation.

Step17: start Jenkins server

Jenkins Account

NETSTAT tool to capture Port activity.

Install NETSTAT Agent for analyzing port activities

  1. Accept and click next

2. Click next

3. Click install and finish.

4) The NETSTAT agent installed completely

5 ) Analyzing local port 8080 with NETSTAT.

It shows java.exe is the process running on local port 8080.

6) Port Activity when logging into Jenkins server.

The NETSTAT shows TCP network communication (Listen, Establish connection etc).

Analyzing Jenkins installation Logs

The Jenkins logs can find from Jenkins home folder. The location is “C:\Program Files\Jenkins”

The log files such as “Jenkins.err” and “Jenkins.out” are useful to analyse the installation process.

Jenkins is s good tool for the build the components and release the software. The large enterprise companies prefer Jenkins as it has high number of plugins and easily customized.

--

--

AI Canada Club

Don’t hold back!! Be the first to get notified about latest articles. Follow for updates!!