From 039ec78d350f183a797e9c2fb66d4dce610a6235 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Thu, 2 Apr 2026 20:47:14 -0700 Subject: [PATCH] fix(ci): copy events metadata to top-level artifact directory The packaging script only placed all_events.json.xz in an events/ subdirectory, but the firmware advertises the metadata URI at the board directory top level. New build targets added after the Jenkins-to-GHA migration had no legacy top-level copy, causing QGC to get a 404 when fetching component metadata. Fixes #26963 Signed-off-by: Ramon Roche --- Tools/ci/package_build_artifacts.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/ci/package_build_artifacts.sh b/Tools/ci/package_build_artifacts.sh index f24a3f6a6c..1c33b4434d 100755 --- a/Tools/ci/package_build_artifacts.sh +++ b/Tools/ci/package_build_artifacts.sh @@ -29,6 +29,9 @@ for build_dir_path in build/*/ ; do # Events mkdir -p artifacts/$build_dir/events/ cp $build_dir_path/events/all_events.json.xz artifacts/$build_dir/events/ 2>/dev/null || true + # Also copy to top level: firmware advertises the metadata URI without the events/ subdirectory + # (see src/lib/component_information/CMakeLists.txt comp_metadata_events_uri_board) + cp $build_dir_path/events/all_events.json.xz artifacts/$build_dir/ 2>/dev/null || true # SBOM cp $build_dir_path/*.sbom.spdx.json artifacts/$build_dir/ 2>/dev/null || true ls -la artifacts/$build_dir