# Jenkins

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

**Field:** Software Development  
**Category:** DevOps & Cloud  
**Also known as:** Jenkins CI, Jenkinsfile, Jenkins Pipeline

## 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.

## 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

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

## Example code

```groovy
pipeline {
    agent any
    stages {
        stage('Test') {
            steps {
                sh 'npm test'
            }
        }
    }
}
```

A Jenkinsfile with one stage that runs the tests.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [CI/CD Pipeline](https://learn.benibix.com/term/development/ci-cd-pipeline)
- [Continuous Integration (CI)](https://learn.benibix.com/term/development/continuous-integration)
- [GitHub Actions](https://learn.benibix.com/term/development/github-actions)
- [GitLab CI/CD](https://learn.benibix.com/term/development/gitlab-ci-cd)
- [CI Runner](https://learn.benibix.com/term/development/ci-runner)

![A pipeline drawn as three stages in a row: build, test and deploy. Each stage holds jobs, like compile, unit tests and lint, and the jobs in one stage run side by side. A runner, lit up, is the machine that picks up each job and runs it. Below, the same pipeline is shown as three config files: .github/workflows for GitHub Actions, .gitlab-ci.yml for GitLab CI/CD and a Jenkinsfile for Jenkins.](https://learn.benibix.com/diagrams/dev3-pipeline-stages.svg)

---

Source: https://learn.benibix.com/term/development/jenkins
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
