Skip to content

Jenkins: Introduction & Getting Started

Jenkins is an open-source automation server widely used for building, testing, and deploying software through continuous integration and continuous delivery (CI/CD) pipelines.

Why Use Jenkins?

  • Automate software builds, tests, and deployments
  • Integrate with hundreds of plugins for SCM, notifications, and more
  • Visualize and manage complex pipelines

How Jenkins Works

  • Runs as a web application (Java-based)
  • Pipelines are defined using a GUI or Jenkinsfile (Groovy syntax)
  • Integrates with Git, Docker, cloud providers, and more

Quick Start Example

  1. Install Jenkins (on Ubuntu):
    sudo apt update
    sudo apt install openjdk-11-jre
    wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
    sudo sh -c 'echo deb https://pkg.jenkins.io/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
    sudo apt update
    sudo apt install jenkins
    sudo systemctl start jenkins
    
  2. Access Jenkins:
  3. Open http://localhost:8080 in your browser
  4. Follow the setup wizard
  5. Create a simple pipeline:
  6. Use the GUI or create a Jenkinsfile:
    pipeline {
      agent any
      stages {
        stage('Hello') {
          steps {
            echo 'Hello, Jenkins!'
          }
        }
      }
    }
    

Learn More