gradle
Gradle's `* What went wrong:` block, stopping before the `* Try:` boilerplate advice. A wrapper - it names the failed task, the compiler output above it is the cause.
jvmbuildwrappermatcher
Install: ci-doctor matchers add official/gradle
matchers/jvm/gradle/matcher.yaml
id: gradlerole: wrapperclassification: [jvm, build]description: Gradle's `* What went wrong:` block, stopping before the `* Try:` boilerplate advice. A wrapper - it names the failed task, the compiler output above it is the cause.start: '^\* What went wrong:'end: ^\* (Try|Get more help)
In bundles
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
1Running with gitlab-runner 16.9.1 (d773c4a1)
2 on jvm-runner-03 Gr5Wz1Xc, system ID: s_11ee22ff3344
3Preparing the "docker" executor
4 Using Docker executor with image gradle:8.8-jdk21 ...
5Using Docker executor with image gradle:8.8-jdk21 ...
6Using docker image sha256:6b5a4c3d2e1f for gradle:8.8-jdk21 with digest gradle@sha256:4d3e...
7Preparing environment
8Running on runner-gr5wz1xc-project-64-concurrent-0...
9Fetching changes with git depth set to 50...
10Checking out 2f8cc410 as detached HEAD...
11Checking cache for gradle-jdk21-default...
12Successfully extracted cache
13$ ./gradlew --version
14Gradle 8.8
15$ ./gradlew build --no-daemon --console=plain
16> Task :app:compileJava FAILED
17/builds/team/svc/app/src/main/java/com/acme/OrderService.java:64: error: cannot find symbol
18 return repository.findByStatus(OrderStatus.PENDING);
19 ^
20 symbol: variable PENDING
21 location: class OrderStatus
221 error
23
24FAILURE: Build failed with an exception.
25
26* What went wrong:
27Execution failed for task ':app:compileJava'.
28> Compilation failed; see the compiler error output for details.
29
30* Try:
31> Run with --stacktrace option to get the stack trace.
32> Run with --info or --debug option to get more log output.
33> Run with --scan to get full insights.
34
35BUILD FAILED in 34s
362 actionable tasks: 1 executed, 1 up-to-date
37Running after_script
38$ echo "gradle build failed"
39gradle build failed
40Uploading artifacts for failed job
41WARNING: app/build/libs/: no matching files. Ensure that the artifact path is relative to the working directory
42ERROR: Job failed: exit code 1