Add config error for Gradle build failures
This commit is contained in:
parent
3edd1bf725
commit
bddfc7c6d5
3 changed files with 13 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ function ensureEndsInPeriod(text: string): string {
|
|||
|
||||
/** Error messages from the CLI that we consider configuration errors and handle specially. */
|
||||
export enum CliConfigErrorCategory {
|
||||
GradleBuildFailed = "GradleBuildFailed",
|
||||
IncompatibleWithActionVersion = "IncompatibleWithActionVersion",
|
||||
InitCalledTwice = "InitCalledTwice",
|
||||
InvalidSourceRoot = "InvalidSourceRoot",
|
||||
|
|
@ -150,6 +151,11 @@ export const cliErrorsConfig: Record<
|
|||
CliConfigErrorCategory,
|
||||
CliErrorConfiguration
|
||||
> = {
|
||||
[CliConfigErrorCategory.GradleBuildFailed]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("[autobuild] FAILURE: Build failed with an exception."),
|
||||
],
|
||||
},
|
||||
// Version of CodeQL CLI is incompatible with this version of the CodeQL Action
|
||||
[CliConfigErrorCategory.IncompatibleWithActionVersion]: {
|
||||
cliErrorMessageCandidates: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue