Skip to content

Commit e28ae3a

Browse files
committed
Add config error for Swift build failures
1 parent bddfc7c commit e28ae3a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

lib/cli-errors.js

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cli-errors.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli-errors.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export enum CliConfigErrorCategory {
134134
NoSourceCodeSeen = "NoSourceCodeSeen",
135135
NoSupportedBuildCommandSucceeded = "NoSupportedBuildCommandSucceeded",
136136
NoSupportedBuildSystemDetected = "NoSupportedBuildSystemDetected",
137+
SwiftBuildFailed = "SwiftBuildFailed",
137138
}
138139

139140
type CliErrorConfiguration = {
@@ -176,7 +177,7 @@ export const cliErrorsConfig: Record<
176177
},
177178
[CliConfigErrorCategory.MavenBuildFailed]: {
178179
cliErrorMessageCandidates: [
179-
new RegExp("[autobuild] [ERROR] Failed to execute goal"),
180+
new RegExp("\\[autobuild\\] \\[ERROR\\] Failed to execute goal"),
180181
],
181182
},
182183
[CliConfigErrorCategory.NoBuildCommandAutodetected]: {
@@ -224,6 +225,13 @@ export const cliErrorsConfig: Record<
224225
new RegExp("No supported build system detected"),
225226
],
226227
},
228+
[CliConfigErrorCategory.SwiftBuildFailed]: {
229+
cliErrorMessageCandidates: [
230+
new RegExp(
231+
"\\[autobuilder/build\\] \\[build-command-failed\\] `autobuild` failed to run the build command",
232+
),
233+
],
234+
},
227235
};
228236

229237
/**

0 commit comments

Comments
 (0)