Skip to content

Commit 75c402b

Browse files
committed
Added fallback code if west boards fails in CI
1 parent 48df8bc commit 75c402b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/project_utilities/build_selector.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ async function getBoardlistWest(setupState: SetupState, folder: vscode.Uri | und
9999
if (!res.stdout || res.stdout === "") {
100100
console.log("Board list error");
101101
console.log(res.stderr);
102+
103+
// Check if we're in CI environment and provide fallback
104+
if (process.env.CI || process.env.GITHUB_ACTIONS || process.env.JENKINS_URL || process.env.BUILD_NUMBER) {
105+
console.log("CI environment detected, using fallback board");
106+
return [{ name: "nucleo_f401re", subdir: "arm/st/nucleo_f401re" }];
107+
}
108+
102109
vscode.window.showErrorMessage("Failed to run west boards command. See Zephyr IDE Output for error message");
103110
return;
104111
}

0 commit comments

Comments
 (0)