ci(ariadne): include primary branch in quality metrics
This commit is contained in:
parent
21407bdf39
commit
f10540b4a9
@ -233,7 +233,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", "ariadne")
|
suite = os.getenv("SUITE_NAME", "ariadne")
|
||||||
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", "")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user