Skip to content

Commit 88a0b7a

Browse files
committed
Mark Maven build failures as configuration errors
1 parent 88b28eb commit 88a0b7a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

lib/cli-errors.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cli-errors.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli-errors.ts

+6
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export enum CliConfigErrorCategory {
124124
IncompatibleWithActionVersion = "IncompatibleWithActionVersion",
125125
InitCalledTwice = "InitCalledTwice",
126126
InvalidSourceRoot = "InvalidSourceRoot",
127+
MavenBuildFailed = "MavenBuildFailed",
127128
NoBuildCommandAutodetected = "NoBuildCommandAutodetected",
128129
NoBuildMethodAutodetected = "NoBuildMethodAutodetected",
129130
NoSourceCodeSeen = "NoSourceCodeSeen",
@@ -164,6 +165,11 @@ export const cliErrorsConfig: Record<
164165
[CliConfigErrorCategory.InvalidSourceRoot]: {
165166
cliErrorMessageCandidates: [new RegExp("Invalid source root")],
166167
},
168+
[CliConfigErrorCategory.MavenBuildFailed]: {
169+
cliErrorMessageCandidates: [
170+
new RegExp("[autobuild] [ERROR] Failed to execute goal"),
171+
],
172+
},
167173
[CliConfigErrorCategory.NoBuildCommandAutodetected]: {
168174
cliErrorMessageCandidates: [
169175
new RegExp("Could not auto-detect a suitable build method"),

0 commit comments

Comments
 (0)