0Pricing
Docker & DevOps Fundamentals · Lesson

Introduction to Jenkins

Set up a Jenkins server and understand its interface, plugins, and job configuration.

Introduction to Jenkins is a free Docker & DevOps Fundamentals lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Docker & DevOps Fundamentals learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Welcome to Jenkins!

Hello! In this lesson, we'll dive into Jenkins, a powerful open-source automation server. It's a cornerstone for implementing Continuous Integration (CI) and Continuous Delivery (CD) in modern software development.

Jenkins helps automate the non-human part of the software development process, with continuous integration and facilitating continuous delivery.

Introduction to Jenkins — illustration 1

Why Use Jenkins?

Jenkins brings a lot of benefits to your development workflow:

  • Automates Tasks: It takes over repetitive tasks like building, testing, and deploying your code.
  • Extensive Plugin Ecosystem: Supports thousands of plugins, allowing integration with almost any tool in the CI/CD chain.
  • Continuous Feedback: Provides immediate feedback on code changes, helping teams catch issues early.
  • Scalable: Can be distributed across multiple machines to handle large workloads.

Getting Jenkins Up and Running

There are several ways to install Jenkins, but for a quick start, especially for local development or learning, using Docker is often the simplest and most recommended approach.

Other methods include native package installations (for Debian/Ubuntu, Red Hat/CentOS) or deploying a WAR file.

Install Jenkins with Docker

Let's get Jenkins running using a Docker container. This command pulls the latest Long Term Support (LTS) Jenkins image, maps ports, and creates a volume for persistent data.

Run this command in your terminal:

docker run \
  -p 8080:8080 \
  -p 50000:50000 \
  -v jenkins_home:/var/jenkins_home \
  --name jenkins_server \
  jenkins/jenkins:lts

First Login & Admin Password

After running the Docker command, Jenkins will start up. You'll need an initial administrator password to unlock it. This password is generated during the first startup.

To retrieve it, you can inspect the container's logs:

docker logs jenkins_server

The Jenkins Setup Wizard

Once you have the password, navigate to http://localhost:8080 in your web browser. You'll be greeted by the Jenkins setup wizard.

Paste the administrator password to unlock Jenkins. Then, you'll be prompted to install plugins. Choose 'Install suggested plugins' for a standard setup, which includes essential plugins for common CI/CD tasks.

Navigating the Dashboard

After creating your first admin user, you'll land on the Jenkins dashboard. This is your central hub for all things Jenkins.

Key areas to notice:

  • New Item: To create new automation jobs.
  • Manage Jenkins: For global configuration, plugin management, and security settings.
  • Build History: Shows the status of recent job runs.
  • Build Executor Status: Displays the current activity of your Jenkins server.

Understanding Jenkins Jobs

In Jenkins, an 'Item' or 'Job' (also called a 'Project') is the core unit of work. It's a configured task that Jenkins will execute, like building a software project, running tests, or deploying an application.

The two most common job types are:

  • Freestyle Project: A highly flexible, GUI-driven job type for simple to moderately complex tasks.
  • Pipeline: Defined by a Jenkinsfile (code-based), ideal for complex, multi-stage CI/CD workflows.

Creating Your First Freestyle Job

Let's create a simple Freestyle project to see Jenkins in action:

  1. Click 'New Item' on the dashboard.
  2. Enter a name (e.g., MyFirstJob), select 'Freestyle project', and click 'OK'.
  3. In the configuration page, under the 'Build Steps' section, click 'Add build step' and choose 'Execute shell'.
  4. Enter a simple shell command and click 'Save'.

Then, click 'Build Now' on the job's page to run it!

echo "Hello CoddyKit from Jenkins!"
ls -la

Quick Check: Jenkins Basics

Jenkins is a crucial tool in modern software development. Let's see if you've grasped its main purpose.

Recap & Next Steps

Great job! You've successfully been introduced to Jenkins, understood its importance, set it up using Docker, navigated its interface, and even created your first automated job.

You now have a foundational understanding of Jenkins. Next, you'll learn how to integrate Jenkins with Docker to build and push images, and automate deployments, truly unlocking its CI/CD potential!

Frequently asked questions

Is the “Introduction to Jenkins” lesson free?

Yes — the full text of “Introduction to Jenkins” is free to read here on the web, and the Docker & DevOps Fundamentals course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Docker & DevOps Fundamentals course, upgrade to CoddyKit PRO.

What will I learn in “Introduction to Jenkins”?

Set up a Jenkins server and understand its interface, plugins, and job configuration. You practise Docker & DevOps Fundamentals with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Docker & DevOps Fundamentals?

No prior experience is required. Docker & DevOps Fundamentals on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Introduction to Jenkins” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Docker & DevOps Fundamentals lesson?

Yes. Every Docker & DevOps Fundamentals lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Introduction to Jenkins
  2. Building Docker Images with Jenkins
  3. Automated Deployment with Jenkins
  4. Jenkins Pipeline as Code with Jenkinsfile
← Back to Docker & DevOps Fundamentals