All services

Developer Tools

AWS CodeBuild

Fully managed build & test service.

Official docs

Overview

CodeBuild compiles source, runs tests and produces artifacts in ephemeral containers. Pay per build minute.

When to use it

  • Build & test stage of CI/CD
  • Running heavy test suites without managing Jenkins agents
  • Producing Docker images and pushing to ECR

Setup

  1. Create a project → source (GitHub/S3/CodeCommit).
  2. Pick a managed image (e.g. aws/codebuild/standard:7.0) or your own ECR image.
  3. Provide a buildspec.yml in the repo.

How to use

buildspec.yml example
version: 0.2
phases:
  install:
    runtime-versions: { nodejs: 20 }
    commands: [ npm ci ]
  build:
    commands: [ npm test -- --reporter junit ]
reports:
  jest:
    files: [ 'junit.xml' ]
    file-format: JUNITXML

QA use cases

  • Run parallel Cypress shards using build matrix; aggregate JUnit reports into the CodeBuild Reports console.
  • Publish coverage and test report artifacts to S3 with retention.