Skip to content

Gradle Build Scan Server

A self-hosted server for receiving and viewing Gradle build scans.

Contributor-focused build and tooling commands are documented on the Bazel workflows page.

Terminal window
docker run -p 8080:8080 -v build-scan-data:/data ghcr.io/lowkeylab/build-scan-server:latest

Add the Develocity plugin to your settings.gradle.kts:

plugins {
id("com.gradle.develocity") version "4.3.2"
}
develocity {
server = "http://localhost:8080"
buildScan {
publishing.onlyIf { true }
uploadInBackground = false
}
}
Terminal window
./gradlew build

The build scan will be uploaded to your server and viewable at http://localhost:8080.

If you want an end-to-end local walkthrough with real UI screenshots, follow the local build scan UI walkthrough.

Terminal window
docker pull ghcr.io/lowkeylab/build-scan-server:latest
docker run -p 8080:8080 -v build-scan-data:/data ghcr.io/lowkeylab/build-scan-server:latest

The server will be available at http://localhost:8080.

VariableDefaultDescription
DATABASE_URLsqlite:///data/build_scans.dbSQLite database path
PORT8080HTTP listen port

Mount a volume at /data for persistent storage:

Terminal window
docker run -p 3000:3000 \
-e PORT=3000 \
-v build-scan-data:/data \
ghcr.io/lowkeylab/build-scan-server:latest
Terminal window
bazel run //build-scan/server/src:load_image # loads as local/build-scan-server:latest
docker run -p 8080:8080 -v build-scan-data:/data local/build-scan-server:latest