mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 22:32:11 +08:00
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 <mrpollo@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user