report git branch to testing closet

old-commit-hash: f1c3662311ae3d4b69ddb2ddb268622d9a9c3339
This commit is contained in:
Adeeb Shihadeh
2020-10-06 21:00:19 -07:00
parent dc2470176b
commit baae562f8f

View File

@@ -68,6 +68,7 @@ def heartbeat():
'version': version,
'dongle_id': params.get("DongleId").rstrip().decode('utf8'),
'remote': subprocess.check_output(["git", "config", "--get", "remote.origin.url"], cwd=work_dir).decode('utf8').rstrip(),
'branch': subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"], cwd=work_dir).decode('utf8').rstrip(),
'revision': subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=work_dir).decode('utf8').rstrip(),
'serial': subprocess.check_output(["getprop", "ro.boot.serialno"]).decode('utf8').rstrip(),
'tmux': tmux,