Get In touch

Blog Details

DevOps: Deploy Jenkins Server locally

In this post, We’ll learn how to spin up Jenkins server locally in couple of steps.

Jenkins is an open source Continuous Integration server capable of orchestrating a chain of actions that help to achieve the Continuous Integration process (and not only) in an automated fashion.

Jenkins is entirely written in Java. Jenkins is a widely used application around the world that has around 300k installations and growing day by day.

I’m assuming that you already have Java configured on your machine as part of pre-requisites.

Follow below steps for setting up Jenkins on your local machine:

Step 1: Download Jenkins WAR file from official website.

Step 2: Go to Downloads folder (or wherever you placed downloaded WAR file)

Step 3: Open CMD / Terminal and run below command:

java -jar jenkins.war

Jenkins will take some time to get itself initialised into up and running state. Once Jenkins server initialised successfully, You can open browser and navigate to http://localhost:8080/ to access Jenkins UI. Jenkins uses port 8080 by default. You can change port:

java -jar jenkins.war –httpPort=8000

To login to Jenkins for the first time, you need access key which gets prompted while installing Jenkins for the first time. The key looks like:

Step 4: Grab the generated access key and paste in Jenkins login prompt in browser.

And we are done!

Note: In case, if you forget access key, you can always locate it in Jenkins root directory (.jenkins/secrets/initialAdminPassword)

In upcoming post, We’ll learn about configuring Jenkins Jobs and build Pipelines.

© 2022 QA Fiction. All rights reserved.