Product / CI & pipelines
CI and pipelines
Model pipelines visually or as YAML, keep them fast with caching and conditional runs, and run jobs on managed machines or your own. This page lists every CI and pipeline feature, with a video and docs for each.
TL;DR
- Build pipelines in a visual editor that writes the YAML for you, or edit the YAML directly.
- Caching, parallel jobs, conditional runs and auto-cancel keep builds fast and cheap.
- Monorepo support runs only the parts of the pipeline a change affects.
- Run jobs on Semaphore’s managed machines, on self-hosted agents, or both.
Features at a glance
| Feature | What it does | Docs |
|---|---|---|
| Workflow Builder | Visual pipeline editor that writes the YAML for you. | Pipelines |
| Build Optimization | Caching, parallel jobs, conditional runs and auto-cancel. | Cache |
| Artifacts | Store build outputs and pass files between jobs and pipelines. | Artifacts |
| Monorepos | Run only the blocks whose files changed. | Monorepo guide |
| Self-Hosted Agents | Run jobs on your own Linux, macOS, Windows or Kubernetes machines. | Self-hosted agents |
Workflow Builder
Design pipelines in a visual editor: add blocks, set dependencies, pick machines and secrets. Semaphore commits the result as .semaphore/semaphore.yml, so the YAML in your repo stays the source of truth and you can edit it by hand at any time.
Workflow Builder feature page → · Pipelines → · Pipeline YAML reference →
Build Optimization
Keep pipelines fast and cheap. Cache dependencies between runs, split tests across parallel jobs, skip blocks with conditions and auto-cancel workflows that a newer push has made obsolete.
.semaphore/semaphore.yml
blocks:
- name: Test
task:
prologue:
commands:
- checkout
- cache restore
- npm ci
- cache store
jobs:
- name: Tests
parallelism: 4
commands:
- npm test -- --shard=$SEMAPHORE_JOB_INDEX/$SEMAPHORE_JOB_COUNT
auto_cancel:
running:
when: "branch != 'main'"
Build Optimization feature page → · Cache → · Jobs and parallelism → · Conditions DSL →
Artifacts
Push build outputs, logs and reports to artifact storage at job, workflow or project level. Pull them in later jobs or pipelines, and set retention so old files are removed automatically.
commands
# in the build job
artifact push workflow dist/app.tar.gz
# in a later job or a deploy pipeline
artifact pull workflow dist/app.tar.gz
Artifacts feature page → · Artifacts → · Toolbox reference →
Monorepos
One workflow for the whole repository. The change_in condition runs a block only when files under its paths changed, so a fix in one service does not rebuild the rest.
Monorepos feature page → · Monorepo guide → · Conditions DSL →
Self-Hosted Agents
Install the open-source agent on your own machines and point pipelines or single blocks at it. The agent connects out to Semaphore, so no inbound ports are opened, and it can scale to zero when idle.
Self-Hosted Agents feature page → · Self-hosted agents → · Install an agent →
Also included
- Pipeline modeling. Add dependencies between blocks to run them in parallel as a graph, and chain pipelines with promotions. Workflows docs.
- Managed machines. Linux and macOS machine types with updated OS images and nothing to maintain. Machine types, Ubuntu image, macOS image.
- Docker containers. Run jobs inside your own container images. Containers docs.
- Git providers. Connect GitHub, Bitbucket or GitLab.
- Coding agents. The MCP server lets Claude Code, Codex and other agents read pipelines, logs and test results.
FAQ
Yes. The Workflow Builder writes .semaphore/semaphore.yml to your repository. You can edit that file by hand, and the builder shows your changes the next time you open it.
Yes. The agent is set per pipeline or per block, so some blocks can run on Semaphore machines and others on your own agents.
Cache dependencies, split tests across parallel jobs, skip unaffected blocks with change_in, and turn on auto-cancel for branches. Pipeline insights show which blocks take longest.
The migration guides cover GitHub Actions, Jenkins, Travis CI, Bitbucket Pipelines and CircleCI, and the sem-ai plugins can translate existing config.
Next steps
Quickstart → · Migration guides → · Plans and pricing →
Blog · Deep dive
Best CI/CD tools in 2026: performance and cost compared
Build time and cost per job across the main CI/CD services.