diff --git a/lib/cli-errors.js b/lib/cli-errors.js index bd70fbb00d..7ede7795c9 100644 --- a/lib/cli-errors.js +++ b/lib/cli-errors.js @@ -117,6 +117,7 @@ function ensureEndsInPeriod(text) { /** Error messages from the CLI that we consider configuration errors and handle specially. */ var CliConfigErrorCategory; (function (CliConfigErrorCategory) { + CliConfigErrorCategory["GradleBuildFailed"] = "GradleBuildFailed"; CliConfigErrorCategory["IncompatibleWithActionVersion"] = "IncompatibleWithActionVersion"; CliConfigErrorCategory["InitCalledTwice"] = "InitCalledTwice"; CliConfigErrorCategory["InvalidSourceRoot"] = "InvalidSourceRoot"; @@ -132,6 +133,11 @@ var CliConfigErrorCategory; * would like to categorize an error as a configuration error or not. */ exports.cliErrorsConfig = { + [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: [ diff --git a/lib/cli-errors.js.map b/lib/cli-errors.js.map index ce4b0352a3..9d2d2a2c81 100644 --- a/lib/cli-errors.js.map +++ b/lib/cli-errors.js.map @@ -1 +1 @@ -{"version":3,"file":"cli-errors.js","sourceRoot":"","sources":["../src/cli-errors.ts"],"names":[],"mappings":";;;AAAA,iCAA4C;AAE5C,MAAM,6BAA6B,GACjC,8EAA8E,CAAC;AAEjF;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,KAAK;IAC/C,YACE,GAAW,EACX,IAAc,EACP,QAAgB,EAChB,MAAc,EACd,MAAc;QAErB,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;aACjC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aAC5C,I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,sBAAsB,CAAC,EAAE,CAAC;QAClD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,sBAAsB,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IACtE,IAAI,sBAAsB,KAAK,SAAS,EAAE,CAAC;QACzC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,mBAAmB,GAAG,QAAQ,CAAC,OAAO,CAAC;IAE3C,2FAA2F;IAC3F,gCAAgC;IAChC,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,gBAAgB,EAAE,CAAC;QACvE,mBAAmB,GAAG,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;IACzE,CAAC;IAED,MAAM,8BAA8B,GAClC,uBAAe,CAAC,sBAAsB,CAAC,CAAC,8BAA8B,CAAC;IACzE,IAAI,8BAA8B,KAAK,SAAS,EAAE,CAAC;QACjD,mBAAmB,GAAG,GAAG,mBAAmB,IAAI,8BAA8B,EAAE,CAAC;IACnF,CAAC;IAED,OAAO,IAAI,yBAAkB,CAAC,mBAAmB,CAAC,CAAC;AACrD,CAAC;AAzBD,8DAyBC"} \ No newline at end of file diff --git a/src/cli-errors.ts b/src/cli-errors.ts index 2d5606c762..f176bfb313 100644 --- a/src/cli-errors.ts +++ b/src/cli-errors.ts @@ -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: [