From e4e087fe0f6fedea6d14169b6795df92b83cf3c2 Mon Sep 17 00:00:00 2001 From: codex Date: Mon, 20 Apr 2026 08:09:05 -0300 Subject: [PATCH] ci(soteria): publish docs_naming from doc hygiene check --- Jenkinsfile | 6 +++++- scripts/check.sh | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d302131..a6422b2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -224,7 +224,11 @@ EOF if [ "${over_500}" -eq 0 ]; then loc_check="ok" fi - docs_naming_check="not_applicable" + docs_naming_check="$(cat build/docs-naming.status 2>/dev/null || echo failed)" + case "${docs_naming_check}" in + ok|pass|passed|success) docs_naming_check="ok" ;; + *) docs_naming_check="failed" ;; + esac gate_glue_check="ok" sonarqube_check="not_applicable" if [ -f build/sonarqube-quality-gate.json ]; then diff --git a/scripts/check.sh b/scripts/check.sh index 8080a8b..7c78d55 100644 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -22,9 +22,11 @@ echo "[quality] structure hygiene" python3 "${ROOT_DIR}/scripts/structure_hygiene_check.py" --root "${ROOT_DIR}" echo "[quality] doc hygiene" +printf 'failed\n' > "${BUILD_DIR}/docs-naming.status" python3 "${ROOT_DIR}/scripts/doc_hygiene_check.py" \ --root "${ROOT_DIR}" \ --waivers "${ROOT_DIR}/scripts/doc_hygiene_waivers.tsv" +printf 'ok\n' > "${BUILD_DIR}/docs-naming.status" echo "[quality] LOC hygiene" python3 "${ROOT_DIR}/scripts/loc_hygiene_check.py" \