ci(atlasbot): include primary branch in quality metrics

This commit is contained in:
jenkins 2026-04-21 11:08:21 -03:00
parent 3ba75ee234
commit ed2ebf266d

View File

@ -225,7 +225,9 @@ def main() -> int:
docs_rc_path = Path(os.getenv("QUALITY_GATE_DOCS_RC_PATH", "build/docs-naming.rc"))
source_root = Path(os.getenv("SOURCE_ROOT", "atlasbot"))
build_dir = Path(os.getenv("BUILD_DIR", "build"))
branch = os.getenv("BRANCH_NAME", os.getenv("GIT_BRANCH", ""))
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", "")
if not junit_path.exists():