Skip to content
BENIBIX Learn

Jenkins

Development☁️ DevOps & CloudCI/CD

Also known as Jenkins CI, Jenkinsfile, Jenkins Pipeline

A free tool you run on your own servers. It builds, tests and ships code.

Think of it like

Think of it like a robot butler you set up in your own house. You choose its tools and teach it each chore.

Example

A bank runs Jenkins on its own servers. Each night its Jenkinsfile builds the app, runs the tests and makes a release.

Why it matters

It runs anywhere and can fit almost any setup. Big teams often need that.

Definition

Jenkins is an open-source server that builds, tests and deploys code. You run it on your own machines. Its steps go in a file called a Jenkinsfile, kept with the code. Thousands of plugins let it work with other tools. It is older than most hosted CI tools, and many big companies still use it.

Example code

groovy
pipeline {
    agent any
    stages {
        stage('Test') {
            steps {
                sh 'npm test'
            }
        }
    }
}
A Jenkinsfile with one stage that runs the tests.
The Jenkinsfile holds the steps for Jenkins to run.

Common mistake

Clicking jobs together in the web page. Keep the pipeline in a Jenkinsfile, so it is saved with the code.

Key takeaways

  1. 1
    Self-hosted. Runs on your own machines.
  2. 2
    Jenkinsfile. The pipeline lives with the code.
  3. 3
    Plugins. Add what your setup needs.