Skip to main content

Easy Jenkins Setup on local machine for beginners

Setup Jenkins on your local PC in minutes


Since you are here, I am assuming that you are trying to find out ,  how to start with Jenkins and you have no clue about it . If it's true, then you are in the best place possible .

This is a blog on Jenkins setup for those guys who have absolutely no idea what to do or where to start.

What is Jenkins?

In short, it is a Build Tool. Also called Continuous integration or CI Server. Most common usage is "Build Automation" . Build Automation is the process of creation of a software build. It includes processes in the order like:

Step 1:  Compiling Source code into binary code.
Step 2:  Packaging binary code.
Step 3:  Running automated tests.

What are we going to cover:

1.     Install Jenkins locally.
2.     Create a free run Project.
3.     Configure it to run a windows shell command.
4.     Display Hello World message using shell command on the console window of Jenkins.

STEP1:

Download the Jenkins setup file . It's a zip file . Something like this. jenkins-1.597.zip
Version might change so get the latest from here for windows:


STEP2:

Keep the zip file anywhere in your system and unzip it using any zip tool.
Inside you should find 2 files.
1.     jenkins-1.597
2.     setup.exe

STEP3:

Run the .exe file by double clicking it.Complete the installation. Under program files, Jenkins will be installed by default.
C:\Program Files (x86)\Jenkins

STEP4:

Launch the following URL on your browser:

localhost:8080

It should look like this.




STEP 5:

Click on the Create new jobs link or New Item (left hand side, top option) to create a new project.


Choose Freestyle project to create a simple project right now.

STEP 6:

Next you will be lead to project configuration page. Give a description to your project if you want.
Scroll down until you see a heading called “Build”.

Click on the drop down under it called “Add build setup”.

Select “Execute Shell” . Inside the box, type "echo Hello World"

 Click on the SAVE button at the bottom of the page.


STEP 7:

Note : If you get java installation errors, follow this step , else just "Save" . 

  • Now revisit home page of Jenkins i.e  localhost:8000 and select “Manage Jenkins”
  • Click on Configure Systems

Link to System Configuration on the "Manage Jenkins" page

·         Delete all JDK installations by clicking on  “Delete Installer”
       ·         Scroll at the bottom and click “Save” .
       ·         Return to Jenkins Home Page (localhost:8080)

SET UP is DONE :). Now let’s run our Project.


  • ·         Click on your project you just created.
  • ·         Click on “Build Now” link (on the left hand side).
  • ·         Watch the progress bar under “Build history”. When it stops on a constant color, it means, the build is complete.
  • ·         Click on the drop down beside the build number (1) under “Build History” and select “console output”.

Console Output link under the Id of the build number.


  • You will be directed to the Console Output page, which shows the results and details of the build .A SUCCESS means the build was successful and that's denoted by the BLUE ball.
Final Results as seen on the Console Output Page

Popular posts from this blog

Why should you visit Kashmir sooner?

"If there is paradise on Earth, this is it"
And paradise it was . Early winter is the perfect time to plan for a visit to Kashmir. We will suggest to keep your itinerary  short . And enjoy the best trip of your life. 

   My Visit Month : Mid November 2015

As we were flying close to Srinagar, about 20 minutes before landing , all of a sudden , every passenger in the aircraft was on his toes craning theirs necks over the tiny window to catch a glimpse of the above. A fleet of Snow Giants.


   Visit Meena Bazaar in Dal Lake
  You will find a floating village with houses , shops, and hotels on all kinds of boats.


    A night on a House Boat




Take a Shikara ride.Watch the super clear reflection of the mountain. Spot fishes and water birds.



Take a 2 day stay in Pahalgam. Visit Mini Switzerland first day on a horse ride.


Visit Sonemarg. Enjoy the snow.



On your way to Pahalgam, visit apple orchids . Taste all kind of apples. The golden ones are supposed to be the best.



The dark ominous mou…

Kerala : How to plan for a lifetime's experience

I have been planning this for months and it finally came along in the best time. A full stretch Kerala trip with Kanyakumari as an added bonus. I will not tell you what to do, but HOW to do it. How to plan your dream Kerala Trip. 

Caution: Mine was too comprehensive. Needs high energy and will be quite tiring. 

I chose the monsoon theme..I wanted to be in the middle of the action. This is the only place in India which offers monsoon as a tourism opportunity. I was lucky. I expected super heavy rains. Instead. I ended up right in between the rainy season and summer which was Perfect.

Advantages in travelling in mid AugustRainfall almost over.Waterfalls at their fullest.Greenery all over the state.Backwaters, beach sides and rivers all very clean.Abundant coconuts to enjoy.Hotel rates brought down.Less crowd everywhere.Festive Preparation going on.Shopping becomes pocket friendly.Our route map:






Day 1 Day 2 Day 3 Day 4 Day 5 Day 6

CNTLM in Office

If you are facing a proxy problem , CNTLM is a general option everybody considers. But the working of CNTLM is not always guaranteed. I myself get confused every time I need to use it.

What problem are we actually talking about?

While working in offices and restricted environments where firewalls and other invisible barriers stop your requests from going out, you sometimes need a way to temporarily jump over that barrier to get your job done . Example: You might face them while trying to install using pip in command line, trying to clone a personal git repository. 

What is CNTLM exactly?

I think this is best answered by the creator himself. Refer this. You can download it from here. For configuration, you an refer this. There are many uses of CNTLM but I am trying to solve my own problem here. So I will stick to breaking office barriers for now ;) .

Why do I need to use it :
1) Python package installations using PIP
2) Git operations : Cloning and pushing to server.

Here are a set of steps I …