diff mbox series

[yocto-autobuilder-helper,01/11] scripts/run-dashboard-index: Add basic index page for new dashboard site

Message ID 20250305102506.2043524-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series [yocto-autobuilder-helper,01/11] scripts/run-dashboard-index: Add basic index page for new dashboard site | expand

Commit Message

Richard Purdie March 5, 2025, 10:24 a.m. UTC
Add a basic index page for the dashboard site and tag onto the indexing job

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 config.json                  |  4 ++++
 scripts/dashboard/index.html | 41 ++++++++++++++++++++++++++++++++++++
 scripts/run-dashboard-index  | 11 ++++++++++
 3 files changed, 56 insertions(+)
 create mode 100644 scripts/dashboard/index.html
 create mode 100755 scripts/run-dashboard-index
diff mbox series

Patch

diff --git a/config.json b/config.json
index d24da94..c5d3913 100644
--- a/config.json
+++ b/config.json
@@ -1373,6 +1373,10 @@ 
             "step2" : {
                 "shortname" : "Extract ptest logs",
                 "EXTRACMDS" : ["${SCRIPTSDIR}/generate-ptest-logs.py ${BASE_SHAREDDIR}/pub/non-release/"]
+            },
+            "step3" : {
+                "shortname" : "Populate/update dashboard site",
+                "EXTRACMDS" : ["${SCRIPTSDIR}/run-dashboard-index ${BUILDDIR}/../"]
             }
         },
         "meta-mingw" : {
diff --git a/scripts/dashboard/index.html b/scripts/dashboard/index.html
new file mode 100644
index 0000000..972bbc9
--- /dev/null
+++ b/scripts/dashboard/index.html
@@ -0,0 +1,41 @@ 
+<!DOCTYPE html>
+<html>
+<head>
+<title>Yocto Project: Valkyrie Build Cluster</title>
+<style>
+html { color-scheme: light dark; }
+body { width: 35em; margin: 0 auto;
+font-family: Tahoma, Verdana, Arial, sans-serif; }
+</style>
+</head>
+<body>
+<h1>Yocto Project: Valkyrie Autobuilder</h1>
+<p>Please choose from the most frequently used links</p>
+
+<p>Cluster Buildbot Controller:
+<a href="https://valkyrie.yoctoproject.org/">valkyrie.yoctoproject.org</a>
+<br/>
+<br/>
+Unreleased Artefacts:
+<a href="https://valkyrie.yocto.io/pub/">valkyrie.yocto.io/pub</a>
+<br/>
+<br/>
+Build Performance and Autobuilder Test Result Index: 
+<a href="https://valkyrie.yocto.io/pub/non-release/">valkyrie.yocto.io/pub/non-release</a>
+<br/>
+<br/>
+OpenEmbedded-Core CVE Status and Patch Metrics:
+<a href="https://valkyrie.yocto.io/pub/non-release/patchmetrics/">valkyrie.yocto.io/pub/non-release/patchmetrics</a>
+<br/>
+<br/>
+Meta-OpenEmbedded CVE Status and Patch Metrics:
+<a href="https://valkyrie.yocto.io/pub/non-release/patchmetrics-meta-oe/">valkyrie.yocto.io/pub/non-release/patchmetrics-meta-oe</a>
+<br/>
+<br/>
+Auobuilder Intermittent Issue Summary:
+<a href="https://valkyrie.yocto.io/pub/non-release/abint/">
+    https://valkyrie.yocto.io/pub/non-release/abint/</a>
+</p>
+<p><em></em></p>
+</body>
+</html>
diff --git a/scripts/run-dashboard-index b/scripts/run-dashboard-index
new file mode 100755
index 0000000..6644ee7
--- /dev/null
+++ b/scripts/run-dashboard-index
@@ -0,0 +1,11 @@ 
+#!/bin/bash
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Called with $1 as the build directory
+
+builddir=$(realpath "$1")
+scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
+
+rsync -irlp --checksum --ignore-times $scriptdir/dashboard/index.html docs@docs.yoctoproject.org:dashboard/
+