Product / CI & pipelines

CI and pipelines

Updated November 2026 · 5 features · Pipeline docs →

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

FeatureWhat it doesDocs
Workflow BuilderVisual pipeline editor that writes the YAML for you.Pipelines
Build OptimizationCaching, parallel jobs, conditional runs and auto-cancel.Cache
ArtifactsStore build outputs and pass files between jobs and pipelines.Artifacts
MonoreposRun only the blocks whose files changed.Monorepo guide
Self-Hosted AgentsRun 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

FAQ

Can I edit the YAML directly instead of using the visual editor?

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.

Can I mix managed machines and self-hosted agents?

Yes. The agent is set per pipeline or per block, so some blocks can run on Semaphore machines and others on your own agents.

How do I speed up a slow pipeline?

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.

How do I migrate from another CI tool?

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.

Star us on GitHub