Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6218335c1d |
@@ -43,8 +43,13 @@ def list_remote_files(ssh_user: str, ssh_host: str, pattern: str) -> list[str]:
|
|||||||
text=True,
|
text=True,
|
||||||
)
|
)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
|
print(
|
||||||
|
f"WARNING: ssh exit {result.returncode} listing {pattern} on {ssh_user}@{ssh_host}"
|
||||||
|
" — build history will be empty for this pattern",
|
||||||
|
file=sys.stderr,
|
||||||
|
)
|
||||||
print(result.stderr, file=sys.stderr)
|
print(result.stderr, file=sys.stderr)
|
||||||
raise subprocess.CalledProcessError(result.returncode, result.args)
|
return []
|
||||||
return [line.strip() for line in result.stdout.splitlines() if line.strip()]
|
return [line.strip() for line in result.stdout.splitlines() if line.strip()]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user