@@ -124,6 +124,7 @@ function ensureEndsInPeriod(text: string): string { |
|
|
124 |
124 |
|
125 |
125 |
/** Error messages from the CLI that we consider configuration errors and handle specially. */ |
126 |
126 |
export enum CliConfigErrorCategory { |
|
127 |
+GradleBuildFailed = "GradleBuildFailed", |
127 |
128 |
IncompatibleWithActionVersion = "IncompatibleWithActionVersion", |
128 |
129 |
InitCalledTwice = "InitCalledTwice", |
129 |
130 |
InvalidSourceRoot = "InvalidSourceRoot", |
@@ -150,6 +151,11 @@ export const cliErrorsConfig: Record< |
|
|
150 |
151 |
CliConfigErrorCategory, |
151 |
152 |
CliErrorConfiguration |
152 |
153 |
> = { |
|
154 |
+[CliConfigErrorCategory.GradleBuildFailed]: { |
|
155 |
+cliErrorMessageCandidates: [ |
|
156 |
+new RegExp("[autobuild] FAILURE: Build failed with an exception."), |
|
157 |
+], |
|
158 |
+}, |
153 |
159 |
// Version of CodeQL CLI is incompatible with this version of the CodeQL Action |
154 |
160 |
[CliConfigErrorCategory.IncompatibleWithActionVersion]: { |
155 |
161 |
cliErrorMessageCandidates: [ |