ci(atlasbot): include primary branch in quality metrics
This commit is contained in:
parent
3ba75ee234
commit
ed2ebf266d
@ -225,7 +225,9 @@ def main() -> int:
|
|||||||
docs_rc_path = Path(os.getenv("QUALITY_GATE_DOCS_RC_PATH", "build/docs-naming.rc"))
|
docs_rc_path = Path(os.getenv("QUALITY_GATE_DOCS_RC_PATH", "build/docs-naming.rc"))
|
||||||
source_root = Path(os.getenv("SOURCE_ROOT", "atlasbot"))
|
source_root = Path(os.getenv("SOURCE_ROOT", "atlasbot"))
|
||||||
build_dir = Path(os.getenv("BUILD_DIR", "build"))
|
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", "")
|
build_number = os.getenv("BUILD_NUMBER", "")
|
||||||
|
|
||||||
if not junit_path.exists():
|
if not junit_path.exists():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user