What Is a Continuous Integration Server?

—

by

in
Table of Contents

A continuous integration server, also called a build server, is the system that watches your repository, queues a job for every push, and runs your build and tests on clean machines. Whichever CI server a team picks, Keploy’s recorded API tests and mocks run on it the same way.

Continuous integration servers tend to go unnoticed until one goes down. Then pull requests sit with no checks, merges stall, and someone starts running tests on their laptop and pasting screenshots into a review. Within an hour, the team remembers how much work that one quiet system was doing.

Most of that work happens out of sight. Something has to notice each push, decide where the job runs, keep the build machines clean, and send a clear answer back to the pull request. How a team sets that up shapes how fast its feedback is, what it costs, and how much maintenance lands on its own engineers.

What Is a Continuous Integration Server?

CI server definition: a central service, either hosted by a provider or run on your own machines, that receives code changes from version control and coordinates the automated builds and tests that continuous integration depends on.

You’ll often hear it called a build server, since building the code is its oldest job. Today most CI servers also run tests, collect reports and store artifacts, but the name stuck.

Three terms get mixed up here, so it helps to separate them:

  • CI server: the system that schedules and runs the work.
  • CI pipeline: the steps the server runs for each change, defined in a file in your repository.
  • CI tool: the product you choose, which usually includes the server, the pipeline syntax and a web interface.

How a CI Server Works

Every CI server, from a single machine in a closet to a large hosted service, does the same four jobs.

How a CI server works: push, pull request and schedule triggers feed a build queue, agents run the jobs, and results go back to the team

Triggers

First, the server needs to know something changed. Most setups use a webhook: the Git host notifies the server the moment someone pushes or opens a pull request. Older setups poll the repository every few minutes instead, and most servers can also run jobs on a schedule, such as a nightly full test suite.

The Build Queue

Each trigger becomes a job in a queue. If every build machine is busy, the job waits its turn. Jobs can also carry labels, such as "needs Linux" or "needs a GPU," so the server only hands them to machines that can actually run them.

Agents and Runners

The machines that do the work are called agents (in Jenkins) or runners (in GitHub Actions and GitLab). The central part of the server, often called the controller, doesn’t build anything itself. Instead, it assigns each job to a free agent, which checks out the code, runs the pipeline and sends the result back. Adding agents is how a CI server handles more jobs at once.

Results and Build History

Finally, the server reports the outcome where developers work: a pass or fail check on the pull request, with logs for every step. It also keeps a history of past builds and their artifacts, so you can see when a test started failing and which commit caused it.

Why Teams Use a CI Server

Strictly speaking, you can practice continuous integration with scripts and discipline alone. In practice, almost every team uses a CI server, because it gives them things that are hard to get any other way:

  • Clean, repeatable build environments: Each job starts from a known state, so a build doesn’t pass just because of something left on one developer’s machine.
  • One source of truth: Everyone sees the same result for the same commit, instead of arguing over whose local run is right.
  • Parallel work: Multiple agents run jobs side by side, so ten pull requests don’t wait in a single line.
  • Build history: Past runs, logs and artifacts stay available, which makes it far easier to trace when something broke.
  • Central secrets: API keys and credentials live in the server’s encrypted store, not on individual laptops.

Hosted vs Self-Hosted CI Servers

The biggest decision is who runs the servers. With a hosted CI service, the provider runs the controller and the build machines, and you only write the pipeline file. With a self-hosted CI server, you install and maintain everything yourself, on your own hardware or cloud account.

Aspect

Hosted CI server

Self-hosted CI server

Who runs the servers

The provider

Your team

Setup

Minutes: connect the repository and add a pipeline file

Hours to days: install, configure and secure the server and agents

Maintenance

Handled by the provider

Upgrades, plugins, security patches and capacity are on you

Cost model

Pay per build minute or per seat, often with a free tier

Free or licensed software, plus the cost of machines and engineering time

Control over hardware and data

Limited to what the provider offers

Full control, including code and data that must stay in your network

Best for

Teams that want to start fast and avoid upkeep

Teams with compliance needs, special hardware or very high build volume

There’s also a middle option. Many hosted services let you attach self-hosted runners, so the provider still manages the controller and interface while jobs run on your own machines. Buildkite is built entirely around this model.

Self-hosted runners also matter when a job needs more access than shared hosted machines allow. Keploy, for example, uses eBPF on Linux, which needs root access, and some hosted runners restrict that kind of privileged access. Our guide to running eBPF programs on Bitbucket self-hosted runners walks through one way to handle it.

A simple rule of thumb: start hosted unless something specific rules it out, such as data that can’t leave your network, hardware the provider doesn’t offer, or build volume large enough that per-minute pricing costs more than running your own machines.

Hosted vs self-hosted CI servers: who manages the pipeline file, controller, build machines and hardware in hosted, hybrid and self-hosted setups

Free and Open Source CI Servers

If you want to self-host without paying for a license, these open source CI servers are all actively maintained. Each one is free to run on your own infrastructure.

Jenkins

The most widely used self-hosted CI server, licensed under MIT. Its plugin ecosystem lets it fit almost any setup, but those plugins are also where most of the maintenance work comes from.

GitLab CI/CD (Self-Managed)

Built into GitLab, so the repository, pipelines and runners live in one place. GitLab follows an open core model: the core is MIT-licensed and free to self-host, while some features need a paid tier.

GoCD

An Apache 2.0 CI and delivery server with strong support for modeling complex pipelines. Its value stream map shows how a single commit moves through every stage.

Woodpecker CI

A lightweight, container-based CI server licensed under Apache 2.0, started as a community fork of Drone. It’s a good fit for small teams that want something simpler than Jenkins.

Concourse

An Apache 2.0 CI server where pipelines are defined in YAML and every step runs in its own container. That makes builds easy to reproduce, though it takes some time to learn its model.

Buildbot

A Python-based framework licensed under GPL-2.0, where you configure builds in Python code. It suits teams that need a highly customized setup and are comfortable writing that code.

If you’d rather not run a server at all, hosted services like GitHub Actions are free for public repositories, and most offer a limited free tier for private projects. For a fuller comparison, including paid options, see our guide to continuous integration tools.

Keeping Tests Portable Across CI Servers

Teams switch CI servers more often than they expect. They move from self-hosted to hosted to cut maintenance, or the other way around for compliance. The pipeline file is usually easy to rewrite. The tests are where the trouble starts.

Tests that rely on a shared staging database, network access to third-party APIs or services preinstalled on one build machine often pass on the old server and fail on the new one. These failures look random, so they end up treated like flaky tests instead of being fixed at the source.

Keploy avoids that dependency. It records real API calls along with their database and downstream responses, then replays them as tests with mocks, so the tests don’t need anything from the build machine beyond the app itself. As a result, the same tests run on any CI server, and Keploy’s docs cover the setup for GitHub, GitLab and Jenkins.

Conclusion

My view: for most teams, the CI server itself is the least interesting part of continuous integration, and that’s how it should be. The best setup is the one your team doesn’t have to think about every week.

If you’re choosing today, start with a hosted service and add self-hosted runners only when you hit a real limit, like compliance rules or special hardware. Whichever you pick, keep your tests free of dependencies on any single build machine, so switching later doesn’t mean rewriting your test suite.

FAQs

Is a CI server the same as a build server?

Yes, in practice the two terms mean the same thing. "Build server" is the older name, from when the main job was compiling code. Modern CI servers also run tests, store artifacts and report results, which is why "CI server" is now more common.

Is GitHub Actions a CI server?

GitHub Actions is a hosted CI service. GitHub runs the server side for you and provides hosted runners to execute jobs. You can also connect your own self-hosted runners while GitHub keeps managing the rest.

What is the best free CI server?

It depends on your setup. Jenkins is the most flexible thanks to its plugins, GitLab CI/CD makes sense if your code already lives in GitLab, and Woodpecker CI suits small teams that want something lightweight. If you don’t want to maintain a server, a hosted free tier is often the better choice.

Can you do continuous integration without a CI server?

Technically, yes. A team can merge often and run builds and tests through scripts or by hand. It just doesn’t hold up for long, because nothing enforces the checks, and results depend on whoever ran them. That’s why almost every team practicing CI ends up using a server.

What is the difference between a CI server and a CI agent?

The CI server, or controller, receives triggers, queues jobs and stores results. A CI agent, also called a runner, is a machine that actually executes the jobs. One server usually coordinates many agents.

Do I need a self-hosted CI server for private code?

No. Hosted CI services build private repositories every day. Self-hosting makes sense when your code or test data must stay inside your own network for compliance, or when you need hardware the hosted provider doesn’t offer.

Author

  • Sancharini Panda

    Sancharini is a digital marketer with experience in the technology and software development space. She collaborates with engineering teams and uses industry research to create practical insights on software testing, automation & modern development workflows.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *