ci(metis): include primary branch in quality metrics

This commit is contained in:
codex 2026-04-21 11:08:21 -03:00
parent 18c570448b
commit 9fe967240e

View File

@ -206,7 +206,9 @@ def main() -> int:
"PUSHGATEWAY_URL", "http://platform-quality-gateway.monitoring.svc.cluster.local:9091" "PUSHGATEWAY_URL", "http://platform-quality-gateway.monitoring.svc.cluster.local:9091"
).strip() ).strip()
suite = os.getenv("SUITE_NAME", "metis") suite = os.getenv("SUITE_NAME", "metis")
branch = os.getenv("BRANCH_NAME", "") branch = os.getenv("BRANCH_NAME") or os.getenv("GIT_BRANCH") or "unknown"
if branch.startswith("origin/"):
branch = branch[len("origin/") :]
build_number = os.getenv("BUILD_NUMBER", "") build_number = os.getenv("BUILD_NUMBER", "")
commit = os.getenv("GIT_COMMIT", "") commit = os.getenv("GIT_COMMIT", "")
strict = os.getenv("METRICS_STRICT", "") == "1" strict = os.getenv("METRICS_STRICT", "") == "1"