Add config error for Swift build failures
This commit is contained in:
parent
bddfc7c6d5
commit
e28ae3a84c
3 changed files with 17 additions and 3 deletions
|
|
@ -134,6 +134,7 @@ export enum CliConfigErrorCategory {
|
|||
NoSourceCodeSeen = "NoSourceCodeSeen",
|
||||
NoSupportedBuildCommandSucceeded = "NoSupportedBuildCommandSucceeded",
|
||||
NoSupportedBuildSystemDetected = "NoSupportedBuildSystemDetected",
|
||||
SwiftBuildFailed = "SwiftBuildFailed",
|
||||
}
|
||||
|
||||
type CliErrorConfiguration = {
|
||||
|
|
@ -176,7 +177,7 @@ export const cliErrorsConfig: Record<
|
|||
},
|
||||
[CliConfigErrorCategory.MavenBuildFailed]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("[autobuild] [ERROR] Failed to execute goal"),
|
||||
new RegExp("\\[autobuild\\] \\[ERROR\\] Failed to execute goal"),
|
||||
],
|
||||
},
|
||||
[CliConfigErrorCategory.NoBuildCommandAutodetected]: {
|
||||
|
|
@ -224,6 +225,13 @@ export const cliErrorsConfig: Record<
|
|||
new RegExp("No supported build system detected"),
|
||||
],
|
||||
},
|
||||
[CliConfigErrorCategory.SwiftBuildFailed]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp(
|
||||
"\\[autobuilder/build\\] \\[build-command-failed\\] `autobuild` failed to run the build command",
|
||||
),
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue