yocto-autobuilder-helper/scripts/run-dashboard-index
Michael Halstead f9391839a5 scripts/run-dashboard-index: cache testresults on the dashboard
https://www.yoctoproject.org/reproducible-build-results/ will pull
testresults from dashboard instead of directly from cgit.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
2025-05-14 10:20:58 -07:00

26 lines
787 B
Bash
Executable File

#!/bin/bash
#
# SPDX-License-Identifier: GPL-2.0-only
#
# Called with $1 as the build directory.
# Set DEST in the environment to override the destination for testing purposes.
set -e
set -u
set -o pipefail
set -x
builddir=$(realpath "$1")
scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
dest=${DEST:-docs@docs.yoctoproject.org:dashboard/}
cd $builddir
$scriptdir/release-parser.py
$scriptdir/layer-parser.py
curl --silent --output $scriptdir/dashboard/testresults.json https://git.yoctoproject.org/yocto-testresults/plain/oeselftest/reproducible/qemux86-64/testresults.json
rsync -irlp --checksum --ignore-times releases.json ${dest}
rsync -irlp --checksum --ignore-times parsed-layers.json ${dest}
rsync -irlp --checksum --ignore-times $scriptdir/dashboard/* ${dest}