← Catalogue

build_failure_banner

The `BUILD FAILURE` / `FAILURE: Build failed` banner Maven and Gradle print once the build gave up.

jvmbuildwrappermatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/build_failure_banner

matchers/jvm/build_failure_banner/matcher.yaml

id: build_failure_bannerrole: wrapperclassification: [jvm, build]description: 'The `BUILD FAILURE` / `FAILURE: Build failed` banner Maven and Gradle print once the build gave up.'pattern: 'FAILURE: Build failed|BUILD FAILURE'before: 3after: 15

In bundles

alljvm

Fixtures

Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.

gradle_build_failureOpen in playground

1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: gradle_build_failure
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run ./gradlew --version
35./gradlew --version
36./gradlew build --no-daemon --console=plain
37shell: /usr/bin/bash -e {0}
38##[endgroup]
39Gradle 8.8
40> Task :app:compileJava FAILED
41/builds/team/svc/app/src/main/java/com/acme/OrderService.java:64: error: cannot find symbol
42 return repository.findByStatus(OrderStatus.PENDING);
43 ^
44 symbol: variable PENDING
45 location: class OrderStatus
461 error
47
48FAILURE: Build failed with an exception.
49
50* What went wrong:
51Execution failed for task ':app:compileJava'.
52> Compilation failed; see the compiler error output for details.
53
54* Try:
55> Run with --stacktrace option to get the stack trace.
56> Run with --info or --debug option to get more log output.
57> Run with --scan to get full insights.
58
59BUILD FAILED in 34s
602 actionable tasks: 1 executed, 1 up-to-date
61##[error]Process completed with exit code 1.
62##[group]Post Run actions/checkout@v4
63##[endgroup]
64/usr/bin/git version
65git version 2.54.0
66##[group]Post Run actions/upload-artifact@v4
67##[endgroup]
68Artifact upload complete.
69##[warning]app/build/libs/: no matching files. Ensure that the artifact path is relative to the working directory
70Post job cleanup.
71Cleaning up orphan processes